[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 31/47] exec: Make EXCP_FOO definitions target agnostic
|
From: |
Richard Henderson |
|
Subject: |
[PULL 31/47] exec: Make EXCP_FOO definitions target agnostic |
|
Date: |
Tue, 3 Oct 2023 10:30:36 -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 17c7420543..b14255923b 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
- [PULL 17/47] accel/tcg: Remove cpu_neg(), (continued)
- [PULL 17/47] accel/tcg: Remove cpu_neg(), Richard Henderson, 2023/10/03
- [PULL 11/47] target/arm: Remove size and alignment for cpu subclasses, Richard Henderson, 2023/10/03
- [PULL 07/47] accel/tcg: Restrict tcg_exec_[un]realizefn() to TCG, Richard Henderson, 2023/10/03
- [PULL 16/47] accel/tcg: Move can_do_io to CPUNegativeOffsetState, Richard Henderson, 2023/10/03
- [PULL 21/47] accel/tcg: Remove env_neg(), Richard Henderson, 2023/10/03
- [PULL 24/47] accel/tcg: Modify probe_access_internal() to use CPUState, Richard Henderson, 2023/10/03
- [PULL 19/47] accel/tcg: Replace CPUState.env_ptr with cpu_env(), Richard Henderson, 2023/10/03
- [PULL 18/47] tcg: Rename cpu_env to tcg_env, Richard Henderson, 2023/10/03
- [PULL 23/47] accel/tcg: Modify tlb_*() to use CPUState, Richard Henderson, 2023/10/03
- [PULL 27/47] accel/tcg: Use CPUState in atomicity helpers, Richard Henderson, 2023/10/03
- [PULL 31/47] exec: Make EXCP_FOO definitions target agnostic,
Richard Henderson <=
- [PULL 33/47] accel/tcg: Restrict dump_exec_info() declaration, Richard Henderson, 2023/10/03
- [PULL 28/47] accel/tcg: Remove env_tlb(), Richard Henderson, 2023/10/03
- [PULL 35/47] accel: Rename accel-common.c -> accel-target.c, Richard Henderson, 2023/10/03
- [PULL 36/47] exec: Rename cpu.c -> cpu-target.c, Richard Henderson, 2023/10/03
- [PULL 37/47] exec: Rename target specific page-vary.c -> page-vary-target.c, Richard Henderson, 2023/10/03
- [PULL 34/47] accel: Make accel-blocker.o target agnostic, Richard Henderson, 2023/10/03
- [PULL 39/47] accel/tcg: Make monitor.c a target-agnostic unit, Richard Henderson, 2023/10/03
- [PULL 30/47] accel/tcg: move ld/st helpers to ldst_common.c.inc, Richard Henderson, 2023/10/03
- [PULL 38/47] accel/tcg: Rename target-specific 'internal.h' -> 'internal-target.h', Richard Henderson, 2023/10/03
- [PULL 41/47] accel/tcg: Make cpu-exec-common.c a target agnostic unit, Richard Henderson, 2023/10/03