diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-28 08:15:16 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-19 12:28:59 +0100 |
commit | b94b8c604b6d4e6071569c4c00a1f4c841028934 (patch) | |
tree | c3a6e272dbfb7d7112b0ba1b9102d590cefc5cc3 /target/i386/cpu.c | |
parent | 484aecf2d3a75251b63481be2a0c3aef635002af (diff) | |
download | qemu-b94b8c604b6d4e6071569c4c00a1f4c841028934.zip qemu-b94b8c604b6d4e6071569c4c00a1f4c841028934.tar.gz qemu-b94b8c604b6d4e6071569c4c00a1f4c841028934.tar.bz2 |
accel: Do not set CPUState::tcg_cflags in non-TCG accels
'tcg_cflags' is specific to TCG.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231130075958.21285-1-philmd@linaro.org>
Diffstat (limited to 'target/i386/cpu.c')
-rw-r--r-- | target/i386/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 2524881..03822d9 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -7221,8 +7221,8 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) static bool ht_warned; unsigned requested_lbr_fmt; +#if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY) /* Use pc-relative instructions in system-mode */ -#ifndef CONFIG_USER_ONLY cs->tcg_cflags |= CF_PCREL; #endif |