<div dir="ltr"><div>Hello,</div><div><br></div><div>I may be missing something, but it seems that theĀ on_all_sys_return callback is inconsistent to its definition.</div><div><br></div><div>The definition is:</div><font face="monospace, monospace">typedef void (*on_all_sys_return_t)(CPUState *cpu, target_ulong pc, target_ulong callno);</font><br><div><br></div><div>But it is run as:</div><div><font face="monospace, monospace">PPP_RUN_CB(on_all_sys_return, cpu, pc, env-&gt;regs[R_EAX]);<br></font></div><div><br></div><div>I.e. the system call return value is supplied to the callback instead of the system call number.</div><div><br></div><div>Any thoughts on this?</div><div><br></div><div>Thanks,</div><div>Manolis</div><div><br></div></div>