]> git.proxmox.com Git - mirror_qemu.git/commit
exec: fix code tlb entry misused as iotlb in get_page_addr_code()
authorAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 16:50:18 +0000 (18:50 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 8 Mar 2012 16:54:20 +0000 (18:54 +0200)
commitce5d64c2d0aa2aaf2ef60e9af48b0bf57852470b
tree93d3de474af801c3e7dcc178fad9fbdaf0474d57
parentaa102231f09af7e5e2cc1376499991ac2ea00115
exec: fix code tlb entry misused as iotlb in get_page_addr_code()

get_page_addr_code() reads a code tlb entry, but interprets it as an
iotlb entry.  This works by accident since the low bits of a RAM code
tlb entry are clear, and match a RAM iotlb entry.  This accident is
about to unhappen, so fix the code to use an iotlb entry (using the
code entry with TLB_MMIO may fail if the page is a watchpoint).

Signed-off-by: Avi Kivity <avi@redhat.com>
exec.c