Commit e7eee62a authored by Max Filippov's avatar Max Filippov Committed by Blue Swirl

target-xtensa: return ENOSYS for unimplemented simcalls

This prevents guest from proceeding with uninitialised garbage returned
from unimplemented simcalls.
Signed-off-by: default avatarMax Filippov <>
Signed-off-by: default avatarBlue Swirl <>
parent 0232cd35
......@@ -218,6 +218,8 @@ void HELPER(simcall)(CPUXtensaState *env)
qemu_log("%s(%d): not implemented\n", __func__, regs[2]);
regs[2] = -1;
regs[3] = ENOSYS;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment