Philippe Mathieu-Daudé 454c1e1dd8 hw/misc/mips_itu: Make MIPSITUState target agnostic
When prototyping a heterogenous machine including the ITU,
we get:

  include/hw/misc/mips_itu.h:76:5: error: unknown type name 'MIPSCPU'
      MIPSCPU *cpu0;
      ^

MIPSCPU is declared in the target specific "cpu.h" header,
but we don't want to include it, because "cpu.h" is target
specific and its inclusion taints all files including
"mips_itu.h", which become target specific too. We can
however use the 'ArchCPU *' type in the public header.
By keeping the TYPE_MIPS_CPU QOM type check in the link
property declaration, QOM core code will still check the
property is a correct MIPS CPU.

TYPE_MIPS_ITU is still built per-(MIPS)target, but its header
can now be included by other targets.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231009171443.12145-4-philmd@linaro.org>
2023-10-20 14:46:07 +02:00
..
2023-10-05 09:01:01 -04:00
2023-10-18 10:01:01 +02:00
2023-10-20 14:46:06 +02:00
2023-10-18 10:01:01 +02:00
2023-10-05 09:01:01 -04:00
2023-10-13 13:56:28 +09:00
2023-10-18 10:10:49 +02:00
2023-10-17 10:05:51 -04:00
2023-10-18 10:01:01 +02:00