diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-02 14:22:42 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-03-08 00:37:48 +0100 |
commit | 4c921e3fb2a9f53cbc97318487844b48ad3781f8 (patch) | |
tree | a4e513c1c38a511721388604def27383c8566494 /configs | |
parent | 10997f2d1ded7616d33276cdc2a3e37b9ce2154d (diff) | |
download | qemu-4c921e3fb2a9f53cbc97318487844b48ad3781f8.zip qemu-4c921e3fb2a9f53cbc97318487844b48ad3781f8.tar.gz qemu-4c921e3fb2a9f53cbc97318487844b48ad3781f8.tar.bz2 |
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>
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions