mirror of
https://github.com/qemu/qemu.git
synced 2024-12-04 17:23:39 +08:00
4c921e3fb2
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> |
||
---|---|---|
.. | ||
bootloader.c | ||
boston.c | ||
cps.c | ||
fuloong2e.c | ||
fw_cfg.c | ||
fw_cfg.h | ||
jazz.c | ||
Kconfig | ||
loongson3_bootp.c | ||
loongson3_bootp.h | ||
loongson3_virt.c | ||
malta.c | ||
meson.build | ||
mips_int.c | ||
mipssim.c | ||
trace-events | ||
trace.h |