aboutsummaryrefslogtreecommitdiff
path: root/sim/frv
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-27 00:03:32 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-27 23:36:28 -0400
commit520ca9a7be910686b1e2107165d5cdd5f50da318 (patch)
tree93349d70e26248873aeecd33d89150cf04dd7249 /sim/frv
parenta9d200398aea31fc81191d44f91dad3996780bc8 (diff)
downloadgdb-520ca9a7be910686b1e2107165d5cdd5f50da318.zip
gdb-520ca9a7be910686b1e2107165d5cdd5f50da318.tar.gz
gdb-520ca9a7be910686b1e2107165d5cdd5f50da318.tar.bz2
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.
Diffstat (limited to 'sim/frv')
-rw-r--r--sim/frv/ChangeLog4
-rw-r--r--sim/frv/sim-main.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog
index da32914..e82e9c8 100644
--- a/sim/frv/ChangeLog
+++ b/sim/frv/ChangeLog
@@ -1,5 +1,9 @@
2021-06-27 Mike Frysinger <vapier@gentoo.org>
+ * sim-main.h (SIM_ENGINE_RESTART_HOOK): Delete 0.
+
+2021-06-27 Mike Frysinger <vapier@gentoo.org>
+
* interrupts.c: Include cgen-mem.h.
* profile-fr400.c (acc_use_is_media_p4): Disable function.
* reset.c: Include cgen-mem.h.
diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h
index 9297e55..b7ead0b 100644
--- a/sim/frv/sim-main.h
+++ b/sim/frv/sim-main.h
@@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#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"