aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/cpu.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-21 00:09:23 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-21 01:20:44 -0500
commit5eba9ae8d52a2375e1f2394a4930fdb92844586b (patch)
treeffc06431cec2b6b352490828f6f2b970393a25c7 /sim/ppc/cpu.h
parent95cd009f5d7980e509fe8df7e2fc55a65f1f69cd (diff)
downloadgdb-5eba9ae8d52a2375e1f2394a4930fdb92844586b.zip
gdb-5eba9ae8d52a2375e1f2394a4930fdb92844586b.tar.gz
gdb-5eba9ae8d52a2375e1f2394a4930fdb92844586b.tar.bz2
sim: ppc: mark halt & restart funcs as noreturn
This helps the compiler with optimization and fixes fallthru warnings.
Diffstat (limited to 'sim/ppc/cpu.h')
-rw-r--r--sim/ppc/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/cpu.h b/sim/ppc/cpu.h
index c7a0871..dfd2244 100644
--- a/sim/ppc/cpu.h
+++ b/sim/ppc/cpu.h
@@ -100,21 +100,21 @@ INLINE_CPU\
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 */