[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/14] RFC: mips/cps: fix setting saar property
From: |
Marc-André Lureau |
Subject: |
[PATCH 07/14] RFC: mips/cps: fix setting saar property |
Date: |
Fri, 18 Oct 2019 17:42:05 +0200 |
There is no "saar" property. Note: I haven't been able to test this
code. Help welcome.
May fix commit 043715d1e0fbb3e3411be3f898c5b77b7f90327a ("target/mips:
Update ITU to utilize SAARI and SAAR CP0 registers")
Signed-off-by: Marc-André Lureau <address@hidden>
---
hw/mips/cps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/mips/cps.c b/hw/mips/cps.c
index 1660f86908..c49868d5da 100644
--- a/hw/mips/cps.c
+++ b/hw/mips/cps.c
@@ -106,7 +106,7 @@ static void mips_cps_realize(DeviceState *dev, Error **errp)
object_property_set_bool(OBJECT(&s->itu), saar_present, "saar-present",
&err);
if (saar_present) {
- qdev_prop_set_ptr(DEVICE(&s->itu), "saar", (void *)&env->CP0_SAAR);
+ s->itu.saar = &env->CP0_SAAR;
}
object_property_set_bool(OBJECT(&s->itu), true, "realized", &err);
if (err != NULL) {
--
2.23.0.606.g08da6496b6
- [PATCH 04/14] etraxfs: remove PROP_PTR usage, (continued)
- [PATCH 05/14] dp8393x: replace PROP_PTR with PROP_LINK, Marc-André Lureau, 2019/10/18
- [PATCH 06/14] leon3: replace PROP_PTR with PROP_LINK, Marc-André Lureau, 2019/10/18
- [PATCH 07/14] RFC: mips/cps: fix setting saar property,
Marc-André Lureau <=
- [PATCH 08/14] cris: replace PROP_PTR with PROP_LINK for interrupt vector, Marc-André Lureau, 2019/10/18
- [PATCH 09/14] smbus-eeprom: remove PROP_PTR, Marc-André Lureau, 2019/10/18
- [PATCH 10/14] omap-intc: remove PROP_PTR, Marc-André Lureau, 2019/10/18