This helps the compiler with optimization and fixes fallthru warnings.
INLINE_CPU\
(void) cpu_restart
(cpu *processor,
- unsigned_word nia);
+ unsigned_word nia) ATTRIBUTE_NORETURN;
INLINE_CPU\
(void) cpu_halt
(cpu *processor,
unsigned_word nia,
stop_reason reason,
- int signal);
+ int signal) ATTRIBUTE_NORETURN;
EXTERN_CPU\
(void) cpu_error
(cpu *processor,
unsigned_word cia,
const char *fmt,
- ...) ATTRIBUTE_PRINTF_3;
+ ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_3;
/* The processors local concept of time */
}
-static void
+static ATTRIBUTE_NORETURN void
cntrl_c_simulation(void *data)
{
psim *system = data;
extern void psim_restart
(psim *system,
- int cpu_nr);
+ int cpu_nr) ATTRIBUTE_NORETURN;
extern void psim_set_halt_and_restart
(psim *system,
(psim *system,
int cpu_nr,
stop_reason reason,
- int signal);
+ int signal) ATTRIBUTE_NORETURN;
extern int psim_last_cpu
(psim *system);