Re: [Qemu-devel] Single stepping & GDB on ARM

2013-09-17 Thread Richard Henderson
On 09/17/2013 03:02 AM, Emmanuel Blot wrote: > There is a piece of code I'm not sure to understand, in >get_page_addr_code(CPUArchState *env1, target_ulong addr) > > … > if (unlikely(env1->tlb_table[mmu_idx][page_index].addr_code != > (addr & TARGET_PAGE_MASK))) { >

Re: [Qemu-devel] Single stepping & GDB on ARM

2013-09-17 Thread Emmanuel Blot
> No, it should cause an external abort exception, really. Ok. > It's just nobody's needed it (guest OSes should never do anything > that provokes an external abort unless they're buggy) so nobody's > bothered doing it yet. Understood. Thanks. I'm using QEMU to debug a platform (ARM7TDMI) + OS

Re: [Qemu-devel] Single stepping & GDB on ARM

2013-09-17 Thread Peter Maydell
On 17 September 2013 09:47, Emmanuel Blot wrote: > I noticed that cpu_unassigned_access() is not implemented on ARM. Is > this a missing feature - yet to be implemented, or something that > cannot be supported on ARM plartform for some reason? No, it should cause an external abort exception, real

[Qemu-devel] Single stepping & GDB on ARM

2013-09-17 Thread Emmanuel Blot
Hi, Is there a way to halt the execution of the VM on the *first* unassigned memory access, and let the guest GDB take over to debug the invalid access? I noticed that cpu_unassigned_access() is not implemented on ARM. Is this a missing feature - yet to be implemented, or something that cannot be