From c5190830dbb6c3c875d853b46d742c444fece838 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 21 Dec 2023 00:31:25 -0500
Subject: sim: common: mark engine restart as noreturn

This helps the compiler with optimization and fixes fallthru warnings.
---
 sim/common/sim-engine.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sim/common/sim-engine.h')

diff --git a/sim/common/sim-engine.h b/sim/common/sim-engine.h
index f027cdc..5d1f8fa 100644
--- a/sim/common/sim-engine.h
+++ b/sim/common/sim-engine.h
@@ -88,7 +88,7 @@ extern void sim_engine_restart
 (SIM_DESC sd,
  sim_cpu *last_cpu, /* NULL -> in event-mgr */
  sim_cpu *next_cpu, /* NULL -> succ (last_cpu) or event-mgr */
- sim_cia cia);
+ sim_cia cia) ATTRIBUTE_NORETURN;
 
 /* Restart hook - allow target specific operation when restarting a
    simulator */
-- 
cgit v1.1