armv7m: Report no-coprocessor faults correctly
commit7517748e3f71a3099e57915fba95c4c308e6d842
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Jan 2017 15:20:24 +0000 (27 15:20 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Jan 2017 15:29:08 +0000 (27 15:29 +0000)
treec575fc1e87c83fffe1815a504e55542c98dda800
parent81dd9648c69bb89afdd6f4bb3ed6f3efdac96524
armv7m: Report no-coprocessor faults correctly

For v7M attempts to access a nonexistent coprocessor are reported
differently from plain undefined instructions (as UsageFaults of type
NOCP rather than type UNDEFINSTR).  Split them out into a new
EXCP_NOCP so we can report the FSR value correctly.

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