mirror_qemu/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
..
Kconfig hw/mips/Kconfig: Track Malta's PIIX dependencies via Kconfig 2023-01-13 16:22:57 +01:00
bootloader.c hw/mips/bootloader: Implement nanoMIPS JALRc opcode generator 2023-01-13 09:32:32 +01:00
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 hw/mips/bootloader: Handle buffers as opaque arrays 2023-01-13 09:32:32 +01:00
fw_cfg.c hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
fw_cfg.h hw/mips: Implement fw_cfg_arch_key_name() 2021-01-04 23:32:27 +01:00
jazz.c hw/isa: Rename isa_bus_irqs() -> isa_bus_register_input_irqs() 2023-02-27 22:29:02 +01:00
loongson3_bootp.c hw/mips: Add Loongson-3 boot parameter helpers 2021-01-04 23:33:38 +01:00
loongson3_bootp.h hw/mips: loongson3: Drop 'struct MemmapEntry' 2021-02-21 14:22:09 +01:00
loongson3_virt.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
malta.c hw/mips: Declare all length properties as unsigned 2023-03-08 00:37:48 +01:00
meson.build hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 2023-01-13 09:32:32 +01:00
mips_int.c hw/mips: Use QEMU_IOTHREAD_LOCK_GUARD in cpu_mips_irq_request 2023-01-04 16:20:01 -08:00
mipssim.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
trace-events hw/mips/gt64xxx_pci: Move it to hw/pci-host/ 2023-01-13 09:32:32 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00