]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/helper.c
armv7m: Raise correct kind of UsageFault for attempts to execute ARM code
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:19 +0000 (12:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:19 +0000 (12:08 +0000)
commite13886e3a790b52f0b2e93cb5e84fdc2ada5471a
tree5f76ff9d870ab65b2706330424754bc0d8a60040
parentaa488fe3bb5460c6675800ccd80f6dccbbd70159
armv7m: Raise correct kind of UsageFault for attempts to execute ARM code

M profile doesn't implement ARM, and the architecturally required
behaviour for attempts to execute with the Thumb bit clear is to
generate a UsageFault with the CFSR INVSTATE bit set.  We were
incorrectly implementing this as generating an UNDEFINSTR UsageFault;
fix this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
linux-user/main.c
target/arm/cpu.h
target/arm/helper.c
target/arm/translate.c