summaryrefslogtreecommitdiff
path: root/target-xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-08-22 22:03:35 +0400
committerBlue Swirl <blauwirbel@gmail.com>2012-09-01 10:39:10 +0000
commite7eee62a90c671d22d50964b7de05e3f4fd96f5f (patch)
tree0dc9964baea02a3a5c0cc63212b31443b0f707d8 /target-xtensa
parent0232cd355d37e1ef938c3636a0e934da87f3bcc8 (diff)
target-xtensa: return ENOSYS for unimplemented simcalls
This prevents guest from proceeding with uninitialised garbage returned from unimplemented simcalls. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-xtensa')
-rw-r--r--target-xtensa/xtensa-semi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-xtensa/xtensa-semi.c b/target-xtensa/xtensa-semi.c
index 1c8a19ed5..6d001c2c1 100644
--- a/target-xtensa/xtensa-semi.c
+++ b/target-xtensa/xtensa-semi.c
@@ -218,6 +218,8 @@ void HELPER(simcall)(CPUXtensaState *env)
default:
qemu_log("%s(%d): not implemented\n", __func__, regs[2]);
+ regs[2] = -1;
+ regs[3] = ENOSYS;
break;
}
}