From: Philippe Mathieu-Daudé <philmd@redhat.com>
Date: Sun, 10 Mar 2019 01:07:58 +0000 (+0100)
Subject: hw/mips: Add dependency MIPS_CPS -> MIPS_ITU
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2321d971b6f0a87507d6ca44055864158763309b;p=qemu.git

hw/mips: Add dependency MIPS_CPS -> MIPS_ITU

The Inter-Thread Communication Unit (ITU, introduced in commit
34fa7e83e11) is part of the Coherent Processing System (CPS),
as describe in commit 408294352ad:

    Make ITU available in the system if CPU supports multithreading
    and is part of CPS.

Have CPS select ITU in Kconfig to avoid the following build failure:

  /usr/bin/ld: libqemu-mips64el-softmmu.fa.p/hw_mips_cps.c.o: in function `mips_cps_realize':
  hw/mips/cps.c:104: undefined reference to `mips_itu_get_tag_region'

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190311005618.19007-5-philmd@redhat.com>
---

diff --git a/hw/mips/Kconfig b/hw/mips/Kconfig
index c245e881a2..1d4051fcf0 100644
--- a/hw/mips/Kconfig
+++ b/hw/mips/Kconfig
@@ -47,6 +47,7 @@ config LOONGSON3V
 config MIPS_CPS
     bool
     select PTIMER
+    select MIPS_ITU
 
 config MIPS_BOSTON
     bool