Re: [PATCH v2] target/arm: adjust program counter for wfi exception in AArch32

2020-01-16 Thread Peter Maydell
On Mon, 13 Jan 2020 at 15:59, Jeff Kubascik wrote: > > The wfi instruction can be configured to be trapped by a higher exception > level, such as the EL2 hypervisor. When the instruction is trapped, the > program counter should contain the address of the wfi instruction that > caused the exception

[PATCH v2] target/arm: adjust program counter for wfi exception in AArch32

2020-01-13 Thread Jeff Kubascik
The wfi instruction can be configured to be trapped by a higher exception level, such as the EL2 hypervisor. When the instruction is trapped, the program counter should contain the address of the wfi instruction that caused the exception. The program counter is adjusted for this in the wfi op helpe