Re: [Qemu-devel] [PATCH] linux-user: Handle new ARM breakpoint instruction

2014-06-25 Thread Peter Maydell
On 25 June 2014 17:11, Hunter Laux wrote: > Isn't the instruction decoder really the wrong place to do that since that > exception is handled differently in user space and kernel space. It's my > understanding that the instruction decoder is also shared by machine > emulation. If you're doing mach

Re: [Qemu-devel] [PATCH] linux-user: Handle new ARM breakpoint instruction

2014-06-25 Thread Hunter Laux
Isn't the instruction decoder really the wrong place to do that since that exception is handled differently in user space and kernel space. It's my understanding that the instruction decoder is also shared by machine emulation. If you're doing machine emulation you'll still want to throw EXCP_UDEF

Re: [Qemu-devel] [PATCH] linux-user: Handle new ARM breakpoint instruction

2014-06-25 Thread Peter Maydell
On 25 June 2014 05:08, Hunter Laux wrote: > This instruction space is guaranteed to be undefined. > ARM: 0111 > Thumb: 1101 1110 > > The breakpoint instructions were selected from this instruction space. > Linux traps the illegal instruction and sends

[Qemu-devel] [PATCH] linux-user: Handle new ARM breakpoint instruction

2014-06-24 Thread Hunter Laux
This instruction space is guaranteed to be undefined. ARM: 0111 Thumb: 1101 1110 The breakpoint instructions were selected from this instruction space. Linux traps the illegal instruction and sends a SIGTRAP if it is a breakpoint. Here is the Linux i