[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1926759] Re: WFI instruction results in unhandled CPU exception
From: |
Peter Maydell |
Subject: |
[Bug 1926759] Re: WFI instruction results in unhandled CPU exception |
Date: |
Fri, 30 Apr 2021 13:52:23 -0000 |
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 architectural implementation anyway.)
--
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:
Confirmed
Bug description:
Hi
I refer to the WFI instruction. The bytecode is 0xe320f003. After the
execution, qemu exit with the following crash log.
qemu: unhandled CPU exception 0x10001 - aborting
R00=00000001 R01=40800b34 R02=40800b3c R03=000102ec
R04=00010a28 R05=00010158 R06=00087460 R07=00010158
R08=00000000 R09=00000000 R10=00085b7c R11=408009f4
R12=40800a08 R13=408009f0 R14=0001057c R15=000102f8
PSR=60000010 -ZC- A usr32
qemu:handle_cpu_signal received signal outside vCPU context @
pc=0x7f5c21d0fa12
WFI aims to enter a low-power state and wait for interrupt. The raised
exception seems not a right behavior. I can provide a testcase if you
needed. Many thanks.
Regards
Muhui
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926759/+subscriptions
- [Bug 1926759] [NEW] WFI instruction results in unhandled CPU exception, JIANG Muhui, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, Peter Maydell, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, Peter Maydell, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, JIANG Muhui, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, Peter Maydell, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception,
Peter Maydell <=
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, JIANG Muhui, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, Peter Maydell, 2021/04/30
- [Bug 1926759] Re: WFI instruction results in unhandled CPU exception, Peter Maydell, 2021/04/30