diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-25 23:59:49 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-15 00:24:26 +0200 |
| commit | 63e7af2035242dda6e2460f4eadbbe6f58c67614 (patch) | |
| tree | 0b3b5436f211f600a66283a2b2ab51dd1aa4b190 /hw/mips/cps.c | |
| parent | a598090ebaeb930ce33c2df0d80d87da13be8848 (diff) | |
| download | focaccia-qemu-63e7af2035242dda6e2460f4eadbbe6f58c67614.tar.gz focaccia-qemu-63e7af2035242dda6e2460f4eadbbe6f58c67614.zip | |
hw/mips: Restrict ITU to TCG
MIPS Inter-Thread Communication Unit is implemented using
TCG. Check for TCG both in Kconfig and CPS source.
Fixes: 2321d971b6f ("hw/mips: Add dependency MIPS_CPS -> MIPS_ITU")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250702164953.18579-1-philmd@linaro.org>
Diffstat (limited to 'hw/mips/cps.c')
| -rw-r--r-- | hw/mips/cps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 2a3ba3f58d..e47695e2b0 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -24,7 +24,7 @@ #include "hw/mips/mips.h" #include "hw/qdev-clock.h" #include "hw/qdev-properties.h" -#include "system/kvm.h" +#include "system/tcg.h" #include "system/reset.h" qemu_irq get_cps_irq(MIPSCPSState *s, int pin_number) @@ -59,7 +59,7 @@ static bool cpu_mips_itu_supported(CPUMIPSState *env) { bool is_mt = (env->CP0_Config5 & (1 << CP0C5_VP)) || ase_mt_available(env); - return is_mt && !kvm_enabled(); + return is_mt && tcg_enabled(); } static void mips_cps_realize(DeviceState *dev, Error **errp) |