sim: common: mark engine restart as noreturn

This helps the compiler with optimization and fixes fallthru warnings.
This commit is contained in:
Mike Frysinger 2023-12-21 00:31:25 -05:00
parent cbdfef872b
commit c5190830db

View File

@ -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 */