diff options
| author | Avi Kivity | 2012-03-08 17:50:18 +0100 |
|---|---|---|
| committer | Avi Kivity | 2012-03-08 17:54:20 +0100 |
| commit | ce5d64c2d0aa2aaf2ef60e9af48b0bf57852470b (patch) | |
| tree | 93d3de474af801c3e7dcc178fad9fbdaf0474d57 /softmmu_template.h | |
| parent | memory: store section indices in iotlb instead of io indices (diff) | |
| download | qemu-ce5d64c2d0aa2aaf2ef60e9af48b0bf57852470b.tar.gz qemu-ce5d64c2d0aa2aaf2ef60e9af48b0bf57852470b.tar.xz qemu-ce5d64c2d0aa2aaf2ef60e9af48b0bf57852470b.zip | |
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>
Diffstat (limited to 'softmmu_template.h')
0 files changed, 0 insertions, 0 deletions
