From 520ca9a7be910686b1e2107165d5cdd5f50da318 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 27 Jun 2021 00:03:32 -0400 Subject: [PATCH] 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. --- sim/frv/ChangeLog | 4 ++++ sim/frv/sim-main.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.30.2