aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-01-27 15:20:24 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-01-27 15:29:08 +0000
commit7517748e3f71a3099e57915fba95c4c308e6d842 (patch)
treec575fc1e87c83fffe1815a504e55542c98dda800 /linux-user
parent81dd9648c69bb89afdd6f4bb3ed6f3efdac96524 (diff)
downloadqemu-7517748e3f71a3099e57915fba95c4c308e6d842.zip
qemu-7517748e3f71a3099e57915fba95c4c308e6d842.tar.gz
qemu-7517748e3f71a3099e57915fba95c4c308e6d842.tar.bz2
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
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index f5c8557..3004958 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -573,6 +573,7 @@ void cpu_loop(CPUARMState *env)
switch(trapnr) {
case EXCP_UDEF:
+ case EXCP_NOCP:
{
TaskState *ts = cs->opaque;
uint32_t opcode;