memory: check for watchpoints when getting code ram_addr
commit32b089808f125470b3563bf4209c2301fa35c58e
authorAvi Kivity <avi@redhat.com>
Sun, 18 Mar 2012 16:31:13 +0000 (18 18:31 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 19 Mar 2012 09:15:01 +0000 (19 11:15 +0200)
tree142d2e2362a6fe8a4265caa7287600f4b88dba2f
parent7859cc6e39bf86f890bb1c72fd9ba41deb6ce2e7
memory: check for watchpoints when getting code ram_addr

The code to get the ram_addr from a (tlb entry, vaddr) pair
checks that the resulting memory is not MMIO, but neglects to
check whether the region is hidden by a watchpoint page.

Add the missing check.

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