[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 17/18] user: Declare cpu_loop() once in 'user/cpu_loop.h'
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 17/18] user: Declare cpu_loop() once in 'user/cpu_loop.h' |
Date: |
Thu, 12 Dec 2024 19:53:40 +0100 |
Declare cpu_loop() once in "user/cpu_loop.h".
bsd-user gets the G_NORETURN attribute.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
bsd-user/qemu.h | 2 +-
include/user/cpu_loop.h | 2 ++
linux-user/user-internals.h | 1 -
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 04faee459df..3eaa14f3f56 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -26,6 +26,7 @@
#include "exec/exec-all.h"
#include "user/abitypes.h"
+#include "user/cpu_loop.h"
#include "user/page-protection.h"
extern char **environ;
@@ -187,7 +188,6 @@ 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, ...) G_GNUC_PRINTF(1, 2);
extern __thread CPUState *thread_cpu;
-void cpu_loop(CPUArchState *env);
char *target_strerror(int err);
int get_osversion(void);
void fork_start(void);
diff --git a/include/user/cpu_loop.h b/include/user/cpu_loop.h
index 8e2df232758..b0d4704018d 100644
--- a/include/user/cpu_loop.h
+++ b/include/user/cpu_loop.h
@@ -23,6 +23,8 @@
#include "exec/log.h"
#include "special-errno.h"
+G_NORETURN void cpu_loop(CPUArchState *env);
+
void target_exception_dump(CPUArchState *env, const char *fmt, int code);
#define EXCP_DUMP(env, fmt, code) \
target_exception_dump(env, fmt, code)
diff --git a/linux-user/user-internals.h b/linux-user/user-internals.h
index 46ffc093f40..b9b05c1d11f 100644
--- a/linux-user/user-internals.h
+++ b/linux-user/user-internals.h
@@ -65,7 +65,6 @@ abi_long do_syscall(CPUArchState *cpu_env, int num, abi_long
arg1,
abi_long arg5, abi_long arg6, abi_long arg7,
abi_long arg8);
extern __thread CPUState *thread_cpu;
-G_NORETURN void cpu_loop(CPUArchState *env);
abi_long get_errno(abi_long ret);
const char *target_strerror(int err);
int get_osversion(void);
--
2.45.2
- [PATCH 11/18] accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (1/4), (continued)
- [PATCH 11/18] accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (1/4), Philippe Mathieu-Daudé, 2024/12/12
- [PATCH 12/18] accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (2/4), Philippe Mathieu-Daudé, 2024/12/12
- [PATCH 13/18] accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4), Philippe Mathieu-Daudé, 2024/12/12
- [PATCH 14/18] accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (4/4), Philippe Mathieu-Daudé, 2024/12/12
- [PATCH 15/18] user: Forward declare target_cpu_copy_regs structure, Philippe Mathieu-Daudé, 2024/12/12
- [PATCH 17/18] user: Declare cpu_loop() once in 'user/cpu_loop.h',
Philippe Mathieu-Daudé <=
- [PATCH 16/18] user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h', Philippe Mathieu-Daudé, 2024/12/12
- [PATCH 18/18] user: Move various declarations out of 'exec/exec-all.h', Philippe Mathieu-Daudé, 2024/12/12
- Re: [PATCH 00/18] accel/tcg: Extract user APIs out of 'exec/[cpu,exec]-all.h', Richard Henderson, 2024/12/12
- Re: [PATCH 00/18] accel/tcg: Extract user APIs out of 'exec/[cpu,exec]-all.h', Philippe Mathieu-Daudé, 2024/12/13