target/openrisc: Fixes for memory debugging
commit461a4b944f7e036b2f6bd1fce83ad4fe09e5e2bc
authorStafford Horne <shorne@gmail.com>
Mon, 13 Mar 2017 14:53:29 +0000 (13 23:53 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 4 May 2017 00:38:49 +0000 (4 09:38 +0900)
tree9408070e6517cb84a7291b8c6e3e0c240927fc40
parent3fee028d1ea02cd16470dc5c65d54974ef85b673
target/openrisc: Fixes for memory debugging

When debugging in gdb you might want to inspect instructions in mapped
pages or in exception vectors like 0x800 etc.  This was previously not
possible in qemu since the *get_phys_page_debug() routine only looked
into the data tlb.

Change to fall back to look into instruction tlb and plain physical
pages.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/mmu.c