diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-05 07:56:52 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-05 07:56:52 -0500 |
commit | cd1c74bec6f5fa8cab8136320134b9a5a1ee2625 (patch) | |
tree | f00fc9bccb9373a60626cca9eafa4707ccec4e5d | |
parent | 9d4a8c0a2e0f4909067759391e4aeb5c4af54352 (diff) | |
download | fsf-binutils-gdb-cd1c74bec6f5fa8cab8136320134b9a5a1ee2625.zip fsf-binutils-gdb-cd1c74bec6f5fa8cab8136320134b9a5a1ee2625.tar.gz fsf-binutils-gdb-cd1c74bec6f5fa8cab8136320134b9a5a1ee2625.tar.bz2 |
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.
-rw-r--r-- | sim/mn10300/op_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/mn10300/op_utils.c b/sim/mn10300/op_utils.c index 5425537..5cb4158 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 { |