diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-10-01 17:12:32 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-10-22 16:32:27 -0700 |
commit | 23088ca0bcf491eaa3e99a2760cf85f4cd7a3bce (patch) | |
tree | 80d103e2e315512c49df269bd2c8cfdb11737164 /tcg | |
parent | 397cabaae035102afb547155757fd506620b2bb2 (diff) | |
download | qemu-23088ca0bcf491eaa3e99a2760cf85f4cd7a3bce.zip qemu-23088ca0bcf491eaa3e99a2760cf85f4cd7a3bce.tar.gz qemu-23088ca0bcf491eaa3e99a2760cf85f4cd7a3bce.tar.bz2 |
tcg: Provide guest_base fallback for system mode
Provide a define to allow !tcg_use_softmmu code paths to
compile in system mode, but require elimination.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |