[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/10] tcg: Provide guest_base fallback for system mode
|
From: |
Richard Henderson |
|
Subject: |
[PATCH 02/10] tcg: Provide guest_base fallback for system mode |
|
Date: |
Tue, 3 Oct 2023 10:43:48 -0700 |
Provide a define to allow !tcg_use_softmmu code paths to
compile in system mode, but require elimination.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/tcg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index e753387690..a841844eba 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -178,6 +178,10 @@ static bool tcg_target_const_match(int64_t val, TCGType
type, int ct, int vece);
static int tcg_out_ldst_finalize(TCGContext *s);
#endif
+#ifndef CONFIG_USER_ONLY
+#define guest_base ({ qemu_build_not_reached(); (uintptr_t)0; })
+#endif
+
typedef struct TCGLdstHelperParam {
TCGReg (*ra_gen)(TCGContext *s, const TCGLabelQemuLdst *l, int arg_reg);
unsigned ntmp;
--
2.34.1
- Re: [PATCH 07/10] tcg/mips: Use tcg_use_softmmu, (continued)
- [PATCH 01/10] tcg: Introduce tcg_use_softmmu, Richard Henderson, 2023/10/03
- [PATCH 09/10] tcg/riscv: Use tcg_use_softmmu, Richard Henderson, 2023/10/03
- [PATCH 08/10] tcg/ppc: Use tcg_use_softmmu, Richard Henderson, 2023/10/03
- [PATCH 10/10] tcg/s390x: Use tcg_use_softmmu, Richard Henderson, 2023/10/03
- [PATCH 02/10] tcg: Provide guest_base fallback for system mode,
Richard Henderson <=
- [PATCH 04/10] tcg/aarch64: Use tcg_use_softmmu, Richard Henderson, 2023/10/03