summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorPeter Maydell2017-01-27 16:20:24 +0100
committerPeter Maydell2017-01-27 16:29:08 +0100
commit7517748e3f71a3099e57915fba95c4c308e6d842 (patch)
treec575fc1e87c83fffe1815a504e55542c98dda800 /linux-user
parentarmv7m: set CFSR.UNDEFINSTR on undefined instructions (diff)
downloadqemu-7517748e3f71a3099e57915fba95c4c308e6d842.tar.gz
qemu-7517748e3f71a3099e57915fba95c4c308e6d842.tar.xz
qemu-7517748e3f71a3099e57915fba95c4c308e6d842.zip
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 f5c85574f9..30049581ef 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;