* [PATCH] hw/mips: Restrict ITU to TCG
@ 2025-07-02 16:49 Philippe Mathieu-Daudé
2025-07-02 17:39 ` Richard Henderson
2025-07-15 6:04 ` Philippe Mathieu-Daudé
0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-07-02 16:49 UTC (permalink / raw)
To: qemu-devel
Cc: Jiaxun Yang, Thomas Huth, Paolo Bonzini,
Philippe Mathieu-Daudé, Richard Henderson
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>
---
hw/mips/cps.c | 4 ++--
hw/mips/Kconfig | 2 +-
hw/misc/Kconfig | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/hw/mips/cps.c b/hw/mips/cps.c
index 2a3ba3f58d2..e47695e2b0a 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)
diff --git a/hw/mips/Kconfig b/hw/mips/Kconfig
index b09c89a0175..f84fffcd323 100644
--- a/hw/mips/Kconfig
+++ b/hw/mips/Kconfig
@@ -76,7 +76,7 @@ config LOONGSON3V
config MIPS_CPS
bool
- select MIPS_ITU
+ select MIPS_ITU if TCG
config MIPS_BOSTON
bool
diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig
index ec0fa5aa9f8..e9a9405d2f1 100644
--- a/hw/misc/Kconfig
+++ b/hw/misc/Kconfig
@@ -107,6 +107,7 @@ config STM32L4X5_RCC
config MIPS_ITU
bool
+ depends on TCG
config MPS2_FPGAIO
bool
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hw/mips: Restrict ITU to TCG
2025-07-02 16:49 [PATCH] hw/mips: Restrict ITU to TCG Philippe Mathieu-Daudé
@ 2025-07-02 17:39 ` Richard Henderson
2025-07-15 6:04 ` Philippe Mathieu-Daudé
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2025-07-02 17:39 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: Jiaxun Yang, Thomas Huth, Paolo Bonzini
On 7/2/25 10:49, Philippe Mathieu-Daudé wrote:
> 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>
> ---
> hw/mips/cps.c | 4 ++--
> hw/mips/Kconfig | 2 +-
> hw/misc/Kconfig | 1 +
> 3 files changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hw/mips: Restrict ITU to TCG
2025-07-02 16:49 [PATCH] hw/mips: Restrict ITU to TCG Philippe Mathieu-Daudé
2025-07-02 17:39 ` Richard Henderson
@ 2025-07-15 6:04 ` Philippe Mathieu-Daudé
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-07-15 6:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Jiaxun Yang, Thomas Huth, Paolo Bonzini, Richard Henderson
On 2/7/25 18:49, Philippe Mathieu-Daudé wrote:
> 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>
> ---
> hw/mips/cps.c | 4 ++--
> hw/mips/Kconfig | 2 +-
> hw/misc/Kconfig | 1 +
> 3 files changed, 4 insertions(+), 3 deletions(-)
Patch queued, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-15 6:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 16:49 [PATCH] hw/mips: Restrict ITU to TCG Philippe Mathieu-Daudé
2025-07-02 17:39 ` Richard Henderson
2025-07-15 6:04 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).