[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 24/39] exec: Make EXCP_FOO definitions target agnostic
From: |
Richard Henderson |
Subject: |
[PATCH v3 24/39] exec: Make EXCP_FOO definitions target agnostic |
Date: |
Sat, 16 Sep 2023 14:41:08 -0700 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
The EXCP_* definitions don't need to be target specific,
move them to "exec/cpu-common.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230914185718.76241-2-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/exec/cpu-all.h | 7 -------
include/exec/cpu-common.h | 7 +++++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index b37715c27d..6af7944a38 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -26,13 +26,6 @@
#include "hw/core/cpu.h"
#include "qemu/rcu.h"
-#define EXCP_INTERRUPT 0x10000 /* async interruption */
-#define EXCP_HLT 0x10001 /* hlt instruction reached */
-#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or
singlestep */
-#define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event)
*/
-#define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */
-#define EXCP_ATOMIC 0x10005 /* stop-the-world and emulate atomic */
-
/* some important defines:
*
* HOST_BIG_ENDIAN : whether the host cpu is big endian and
diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
index 41788c0bdd..360b8298a4 100644
--- a/include/exec/cpu-common.h
+++ b/include/exec/cpu-common.h
@@ -7,6 +7,13 @@
#include "exec/hwaddr.h"
#endif
+#define EXCP_INTERRUPT 0x10000 /* async interruption */
+#define EXCP_HLT 0x10001 /* hlt instruction reached */
+#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or
singlestep */
+#define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event)
*/
+#define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */
+#define EXCP_ATOMIC 0x10005 /* stop-the-world and emulate atomic */
+
/**
* vaddr:
* Type wide enough to contain any #target_ulong virtual address.
--
2.34.1
- [PATCH v3 14/39] accel/tcg: Remove env_neg(), (continued)
- [PATCH v3 14/39] accel/tcg: Remove env_neg(), Richard Henderson, 2023/09/16
- [PATCH v3 15/39] tcg: Remove TCGContext.tlb_fast_offset, Richard Henderson, 2023/09/16
- [PATCH v3 17/39] accel/tcg: Modify probe_access_internal() to use CPUState, Richard Henderson, 2023/09/16
- [PATCH v3 16/39] accel/tcg: Modify tlb_*() to use CPUState, Richard Henderson, 2023/09/16
- [PATCH v3 11/39] tcg: Rename cpu_env to tcg_env, Richard Henderson, 2023/09/16
- [PATCH v3 12/39] accel/tcg: Replace CPUState.env_ptr with cpu_env(), Richard Henderson, 2023/09/16
- [PATCH v3 13/39] accel/tcg: Remove cpu_set_cpustate_pointers, Richard Henderson, 2023/09/16
- [PATCH v3 21/39] accel/tcg: Remove env_tlb(), Richard Henderson, 2023/09/16
- [PATCH v3 18/39] accel/tcg: Modify memory access functions to use CPUState, Richard Henderson, 2023/09/16
- [PATCH v3 28/39] accel: Rename accel-common.c -> accel-target.c, Richard Henderson, 2023/09/16
- [PATCH v3 24/39] exec: Make EXCP_FOO definitions target agnostic,
Richard Henderson <=
- [PATCH v3 26/39] accel/tcg: Restrict dump_exec_info() declaration, Richard Henderson, 2023/09/16
- [PATCH v3 29/39] exec: Rename cpu.c -> cpu-target.c, Richard Henderson, 2023/09/16
- [PATCH v3 33/39] accel/tcg: Make icount.o a target agnostic unit, Richard Henderson, 2023/09/16
- [PATCH v3 38/39] accel/tcg: Have tcg_exec_realizefn() return a boolean, Richard Henderson, 2023/09/16
- [PATCH v3 19/39] accel/tcg: Modify atomic_mmu_lookup() to use CPUState, Richard Henderson, 2023/09/16
- [PATCH v3 30/39] exec: Rename target specific page-vary.c -> page-vary-target.c, Richard Henderson, 2023/09/16
- [PATCH v3 32/39] accel/tcg: Make monitor.c a target-agnostic unit, Richard Henderson, 2023/09/16
- [PATCH v3 35/39] accel: Rename accel_cpu_realizefn() -> accel_cpu_realize(), Richard Henderson, 2023/09/16
- [PATCH v3 34/39] accel/tcg: Make cpu-exec-common.c a target agnostic unit, Richard Henderson, 2023/09/16
- [PATCH v3 20/39] accel/tcg: Use CPUState in atomicity helpers, Richard Henderson, 2023/09/16