diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-07-07 02:08:47 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-28 01:08:25 -0500 |
commit | 96537189c92734cad48c95de00d3cd167ad7092d (patch) | |
tree | eb53f643fa6274ce912470661bf53f6a45db93e3 | |
parent | 9af706c919bc6bcc3b0838af0b750258c2351975 (diff) | |
download | gdb-96537189c92734cad48c95de00d3cd167ad7092d.zip gdb-96537189c92734cad48c95de00d3cd167ad7092d.tar.gz gdb-96537189c92734cad48c95de00d3cd167ad7092d.tar.bz2 |
sim: frv: resolve syscalls dynamically
Avoid use of TARGET_<syscall> defines and rely on the callback layers
to resolve these dynamically so we can support multiple syscall layers
instead of assuming the newlib/libgloss numbers all the time.
-rw-r--r-- | sim/frv/traps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/frv/traps.c b/sim/frv/traps.c index 59f1a25..2d44adc 100644 --- a/sim/frv/traps.c +++ b/sim/frv/traps.c @@ -24,7 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define WANT_CPU_FRVBF #include "sim-main.h" -#include "targ-vals.h" #include "cgen-engine.h" #include "cgen-par.h" #include "sim-fpu.h" @@ -134,7 +133,7 @@ frv_itrap (SIM_CPU *current_cpu, PCADDR pc, USI base, SI offset) s.arg2 = GET_H_GR (9); s.arg3 = GET_H_GR (10); - if (s.func == TARGET_SYS_exit) + if (cb_target_to_host_syscall (cb, s.func) == CB_SYS_exit) { sim_engine_halt (sd, current_cpu, NULL, pc, sim_exited, s.arg1); } |