aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-11-06 12:39:16 +0100
committerLaurent Vivier <laurent@vivier.eu>2022-01-06 11:40:52 +0100
commitf93d0af88d8e4b4771144c14195dd97a5b55e149 (patch)
tree970ff9ea2f281a05398371d3ae894aa2543372d4
parentbe23b0eb475e53bf0e346c20dd5277e3d96c66d7 (diff)
downloadqemu-f93d0af88d8e4b4771144c14195dd97a5b55e149.zip
qemu-f93d0af88d8e4b4771144c14195dd97a5b55e149.tar.gz
qemu-f93d0af88d8e4b4771144c14195dd97a5b55e149.tar.bz2
linux-user: Mark cpu_loop() with noreturn attribute
cpu_loop() never exits, so mark it with QEMU_NORETURN. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-By: Warner Losh <imp@bsdimp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20211106113916.544587-1-f4bug@amsat.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
-rw-r--r--linux-user/user-internals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h
index f71f372..a8fdd69 100644
--- a/linux-user/user-internals.h
+++ b/linux-user/user-internals.h
@@ -64,7 +64,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 __thread CPUState *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);