]> git.proxmox.com Git - mirror_qemu.git/commitdiff
accel: Do not set CPUState::tcg_cflags in non-TCG accels
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 28 Nov 2023 07:15:16 +0000 (08:15 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 19 Jan 2024 11:28:59 +0000 (12:28 +0100)
'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>

target/arm/cpu.c
target/i386/cpu.c

index 826ce842c09ba540d85a16a48d71712568efcd22..593695b4247f10feda512918073dd52960ff02c5 100644 (file)
@@ -1796,8 +1796,8 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)
     int pagebits;
     Error *local_err = NULL;
 
+#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
 
index 2524881ce2457671acfc2a636e7f76eb95fe097e..03822d9ba8ee277a99822bdb720274d6659d4928 100644 (file)
@@ -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