diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 00:31:25 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-21 01:23:00 -0500 |
commit | c5190830dbb6c3c875d853b46d742c444fece838 (patch) | |
tree | 3a6b6153f7f312e9d234fedce8e504bee4134d93 /sim/common | |
parent | cbdfef872beb095c5549f2005d917b0043492717 (diff) | |
download | gdb-c5190830dbb6c3c875d853b46d742c444fece838.zip gdb-c5190830dbb6c3c875d853b46d742c444fece838.tar.gz gdb-c5190830dbb6c3c875d853b46d742c444fece838.tar.bz2 |
sim: common: mark engine restart as noreturn
This helps the compiler with optimization and fixes fallthru warnings.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/sim-engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |