From: Mike Frysinger Date: Sun, 27 Jun 2021 04:03:32 +0000 (-0400) Subject: sim: frv: fix engine hook X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=520ca9a7be910686b1e2107165d5cdd5f50da318;p=binutils-gdb.git sim: frv: fix engine hook This hook doesn't return a value, so don't define it to 0 to avoid the compiler warning about it not being used. --- diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog index da32914d379..e82e9c82e4c 100644 --- a/sim/frv/ChangeLog +++ b/sim/frv/ChangeLog @@ -1,3 +1,7 @@ +2021-06-27 Mike Frysinger + + * sim-main.h (SIM_ENGINE_RESTART_HOOK): Delete 0. + 2021-06-27 Mike Frysinger * interrupts.c: Include cgen-mem.h. diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h index 9297e55521b..b7ead0b5de8 100644 --- a/sim/frv/sim-main.h +++ b/sim/frv/sim-main.h @@ -37,7 +37,7 @@ along with this program. If not, see . */ #define SIM_ENGINE_HALT_HOOK(SD, LAST_CPU, CIA) \ frv_sim_engine_halt_hook ((SD), (LAST_CPU), (CIA)) -#define SIM_ENGINE_RESTART_HOOK(SD, LAST_CPU, CIA) 0 +#define SIM_ENGINE_RESTART_HOOK(SD, LAST_CPU, CIA) #include "sim-base.h" #include "cgen-sim.h"