user: Mark cpu_loop() with noreturn attribute
PATCH 1/1 user: Mark cpu_loop() with noreturn attribute
cpu_loop() never exits, so mark it with QEMU_NORETURN.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- bsd-user/qemu.h | 2 +- linux-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
bsd-user/qemu.h +1 -1
@@ -155,7 +155,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg5, abi_long arg6); void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); extern THREAD CPUState *thread_cpu; -void cpu_loop (CPUArchState *env); +void QEMU_NORETURN cpu_loop(CPUArchState *env);char *target_strerror (int err);int get_osversion (void );void fork_start (void );
linux-user/qemu.h +1 -1
@@ -236,7 +236,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8);extern __threadCPUState *thread_cpu; -void cpu_loop (CPUArchState *env); +void QEMU_NORETURN cpu_loop(CPUArchState *env);const char *target_strerror (int err);int get_osversion (void );void init_qemu_uname_release (void );
Signature · 1 line
2.31.1
Quoted 7 lines · Philippe Mathieu-Daudé
cpu_loop()never exits, so mark it withQEMU_NORETURN.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- bsd-user/qemu.h | 2 +- linux-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~
Quoted 8 lines · Philippe Mathieu-Daudé
cpu_loop()never exits, so mark it withQEMU_NORETURN.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- bsd-user/qemu.h | 2 +- linux-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Warner Losh <[email protected]>
bsd-user/qemu.h +0 -0
Quoted 31 lines
index
c02e8a5ca1a..05bee7aefe5100644bsd-user/qemu.h +1
-1@@ -155,7 +155,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num,abi_long arg1, abi_long arg5, abi_long arg6); void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); extern THREAD CPUState *thread_cpu; -void cpu_loop (CPUArchState *env); +void QEMU_NORETURN cpu_loop(CPUArchState *env);char *target_strerror (int err);int get_osversion (void );void
fork_start(void);linux-user/qemu.h +1
-1@@ -236,7 +236,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8);extern __threadCPUState *thread_cpu; -void cpu_loop (CPUArchState *env); +void QEMU_NORETURN cpu_loop(CPUArchState *env);const char *target_strerror (int err);int get_osversion (void );void
init_qemu_uname_release(void);
--
2.31.1
Quoted 9 lines · Philippe Mathieu-Daudé
cpu_loop()never exits, so mark it withQEMU_NORETURN.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- bsd-user/qemu.h | 2 +- linux-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Bin Meng <[email protected]>
Richard Henderson
AppliedQuoted 7 lines · Philippe Mathieu-Daudé
cpu_loop()never exits, so mark it withQEMU_NORETURN.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- bsd-user/qemu.h | 2 +- linux-user/qemu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Queued, thanks.
r~