From: Mike Frysinger Date: Tue, 5 Dec 2023 12:56:52 +0000 (-0500) Subject: sim: mn10300: fix sim_engine_halt call X-Git-Tag: binutils-2_42~713 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd1c74bec6f5fa8cab8136320134b9a5a1ee2625;p=thirdparty%2Fbinutils-gdb.git sim: mn10300: fix sim_engine_halt call The sim_stop argument is an enum and should only be one of those values, not a signal constant. Fix the logic to pass the right sim_xxx & SIM_xxx values in the right arguments. --- diff --git a/sim/mn10300/op_utils.c b/sim/mn10300/op_utils.c index 5425537dc1d..5cb4158efd9 100644 --- a/sim/mn10300/op_utils.c +++ b/sim/mn10300/op_utils.c @@ -155,7 +155,8 @@ do_syscall (SIM_DESC sd) { /* EXIT - caller can look in parm1 to work out the reason */ sim_engine_halt (simulator, STATE_CPU (simulator, 0), NULL, PC, - (parm1 == 0xdead ? SIM_SIGABRT : sim_exited), parm1); + parm1 == 0xdead ? sim_stopped : sim_exited, + parm1 == 0xdead ? SIM_SIGABRT : parm1); } else {