[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-08-25 Thread Thomas Huth
** Changed in: qemu Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1926759 Title: WFI instruction results in unhandled CPU exception Status in QEMU: F

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-05-16 Thread Thomas Huth
Fix has been merged: https://gitlab.com/qemu-project/qemu/-/commit/5b2c8af89b82a671137a ** Changed in: qemu Status: In Progress => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread Peter Maydell
Should be fixed by: https://patchew.org/QEMU/20210430162212.825-1-peter.mayd...@linaro.org/ ** Changed in: qemu Status: Confirmed => Won't Fix ** Changed in: qemu Status: Won't Fix => In Progress -- You received this bug notification because you are a member of qemu- devel-ml, wh

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread Peter Maydell
We do implement those traps, but only in the system mode emulator, because it makes no sense to trap to EL2 in the usermode emulator where EL2 doesn't exist. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/b

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread JIANG Muhui
I agree with this implementation. Though WFI seems make no sense for a userspace program, we should not have assumption that the userspace program will not use this instruction. It seems ARM manual does not defined the implementation of function EnterLowPowerState(); However, before executing thi

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread Peter Maydell
The aarch64 kernel traps and handles WFI as a NOP: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c219bc4e9205 -- so that's probably the most sensible implementation for our linux-user mode. (The aarch32 kernel doesn't trap it, yet, but "WFI is a NOP" is a valid a

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread Peter Maydell
Crash repros on current QEMU. This is a bug, in that we shouldn't crash like this. However, it doesn't really make any sense for a userspace program (which is what a binary run by qemu-arm is) to execute the WFI instruction, which is largely intended for OSes to use. If your guest binary needs to

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread Peter Maydell
Please provide a test case binary and your QEMU command line. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1926759 Title: WFI instruction results in unhandled CPU exception Status in QEMU: New

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread Peter Maydell
Oh, and the QEMU version you're using as well, please. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1926759 Title: WFI instruction results in unhandled CPU exception Status in QEMU: New Bug de

[Bug 1926759] Re: WFI instruction results in unhandled CPU exception

2021-04-30 Thread JIANG Muhui
cmd: ~/qemu-5.1.0/arm-linux-user/qemu-arm ~/test2 QEMU version: qemu-arm version 5.1.0 Sorry that I didn't test it on the latest version of QEMU. ** Attachment added: "test2" https://bugs.launchpad.net/qemu/+bug/1926759/+attachment/5493873/+files/test2 -- You received this bug notification