diff options
author | Max Filippov | 2012-08-22 20:03:35 +0200 |
---|---|---|
committer | Blue Swirl | 2012-09-01 12:39:10 +0200 |
commit | e7eee62a90c671d22d50964b7de05e3f4fd96f5f (patch) | |
tree | 0dc9964baea02a3a5c0cc63212b31443b0f707d8 /target-xtensa | |
parent | Update version to 1.2.0-rc3 (diff) | |
download | qemu-e7eee62a90c671d22d50964b7de05e3f4fd96f5f.tar.gz qemu-e7eee62a90c671d22d50964b7de05e3f4fd96f5f.tar.xz qemu-e7eee62a90c671d22d50964b7de05e3f4fd96f5f.zip |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-xtensa/xtensa-semi.c b/target-xtensa/xtensa-semi.c index 1c8a19ed56..6d001c2c1a 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; } } |