diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-08-22 22:03:35 +0400 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-09-01 10:39:10 +0000 |
commit | e7eee62a90c671d22d50964b7de05e3f4fd96f5f (patch) | |
tree | 0dc9964baea02a3a5c0cc63212b31443b0f707d8 /target-xtensa | |
parent | 0232cd355d37e1ef938c3636a0e934da87f3bcc8 (diff) | |
download | hqemu-e7eee62a90c671d22d50964b7de05e3f4fd96f5f.zip hqemu-e7eee62a90c671d22d50964b7de05e3f4fd96f5f.tar.gz |
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 1c8a19e..6d001c2 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; } } |