qemu-e2k/hw/mips
Philippe Mathieu-Daudé 4c921e3fb2 hw/mips/itu: Pass SAAR using QOM link property
QOM objects shouldn't access each other internals fields
except using the QOM API.

mips_cps_realize() instantiates a TYPE_MIPS_ITU object, and
directly sets the 'saar' pointer:

   if (saar_present) {
       s->itu.saar = &env->CP0_SAAR;
   }

In order to avoid that, pass the MIPS_CPU object via a QOM
link property, and set the 'saar' pointer in mips_itu_realize().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20230203113650.78146-10-philmd@linaro.org>
2023-03-08 00:37:48 +01:00
..
bootloader.c
boston.c hw/mips: Declare all length properties as unsigned 2023-03-08 00:37:48 +01:00
cps.c hw/mips/itu: Pass SAAR using QOM link property 2023-03-08 00:37:48 +01:00
fuloong2e.c
fw_cfg.c
fw_cfg.h
jazz.c hw/isa: Rename isa_bus_irqs() -> isa_bus_register_input_irqs() 2023-02-27 22:29:02 +01:00
Kconfig
loongson3_bootp.c
loongson3_bootp.h
loongson3_virt.c
malta.c hw/mips: Declare all length properties as unsigned 2023-03-08 00:37:48 +01:00
meson.build
mips_int.c
mipssim.c
trace-events
trace.h