X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=sim%2Ffrv%2Fsim-main.h;h=25a0e566dca6dab2a5cbbf9d01be93eba6e72a1a;hb=efd82ac7cb6af0b85efd6f105bae8923b913583d;hp=275ac28f1b265a741e0b4a3d9175f1e3ffc2ba02;hpb=034685f9ce92cf6dfb6656745365b6a5904a8e84;p=binutils-gdb.git diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h index 275ac28f1b2..25a0e566dca 100644 --- a/sim/frv/sim-main.h +++ b/sim/frv/sim-main.h @@ -1,5 +1,5 @@ /* frv simulator support code - Copyright (C) 1998-2015 Free Software Foundation, Inc. + Copyright (C) 1998-2021 Free Software Foundation, Inc. Contributed by Red Hat. This file is part of the GNU simulators. @@ -19,20 +19,15 @@ along with this program. If not, see . */ /* Main header for the frv. */ -#define USING_SIM_BASE_H /* FIXME: quick hack */ - -struct _sim_cpu; /* FIXME: should be in sim-basics.h */ -typedef struct _sim_cpu SIM_CPU; - -/* Set the mask of unsupported traces. */ -#define WITH_TRACE \ - (~(TRACE_alu | TRACE_decode | TRACE_memory | TRACE_model | TRACE_fpu \ - | TRACE_branch | TRACE_debug)) - /* sim-basics.h includes config.h but cgen-types.h must be included before sim-basics.h and cgen-types.h needs config.h. */ #include "config.h" +/* This is a global setting. Different cpu families can't mix-n-match -scache + and -pbb. However some cpu families may use -simple while others use + one of -scache/-pbb. ???? */ +#define WITH_SCACHE_PBB 0 + #include "symcat.h" #include "sim-basics.h" #include "cgen-types.h" @@ -40,10 +35,6 @@ typedef struct _sim_cpu SIM_CPU; #include "frv-opc.h" #include "arch.h" -/* These must be defined before sim-base.h. */ -typedef USI sim_cia; - -void frv_sim_engine_halt_hook (SIM_DESC, SIM_CPU *, sim_cia); #define SIM_ENGINE_HALT_HOOK(SD, LAST_CPU, CIA) \ frv_sim_engine_halt_hook ((SD), (LAST_CPU), (CIA)) @@ -55,6 +46,11 @@ void frv_sim_engine_halt_hook (SIM_DESC, SIM_CPU *, sim_cia); #include "cache.h" #include "registers.h" #include "profile.h" + +void frv_sim_engine_halt_hook (SIM_DESC, SIM_CPU *, sim_cia); + +extern void frv_sim_close (SIM_DESC sd, int quitting); +#define SIM_CLOSE_HOOK(...) frv_sim_close (__VA_ARGS__) /* The _sim_cpu struct. */