On 04/16/2017 04:23 PM, Stafford Horne wrote:
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.

Signed-off-by: Stafford Horne <sho...@gmail.com>

Oh the horrors of a software managed TLB.

You might do well to architecturally define an SPR that holds the page table base, even if for real hardware that's only used by the software refill to load up the address.

That would give qemu the option of performing a real page table walk. This would fix this debug hook properly (so that you can examine pages that aren't in the TLB at all). It would also optionally allow QEMU to skip the software refill, which *significantly* speeds up emulation.

That said,

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to