> 2023年2月3日 11:36,Philippe Mathieu-Daudé 写道:
>
> 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 =
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 = >CP0_SAAR;
}
In order to avoid that, pass the MIPS_CPU object via a QOM