[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 26/33] RFC: mips/cps: fix setting saar property
From: |
Marc-André Lureau |
Subject: |
[PATCH v3 26/33] RFC: mips/cps: fix setting saar property |
Date: |
Wed, 23 Oct 2019 19:31:47 +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")
Cc: Aleksandar Markovic <address@hidden>
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 v3 22/33] etraxfs: remove PROP_PTR usage, Marc-André Lureau, 2019/10/23
[PATCH v3 23/33] dp8393x: replace PROP_PTR with PROP_LINK, Marc-André Lureau, 2019/10/23
[PATCH v3 24/33] leon3: use qemu_irq framework instead of callback as property, Marc-André Lureau, 2019/10/23
[PATCH v3 25/33] sparc: move PIL irq handling to cpu.c, Marc-André Lureau, 2019/10/23
[PATCH v3 26/33] RFC: mips/cps: fix setting saar property,
Marc-André Lureau <=
[PATCH v3 27/33] cris: improve passing PIC interrupt vector to the CPU, Marc-André Lureau, 2019/10/23
[PATCH v3 29/33] omap-intc: remove PROP_PTR, Marc-André Lureau, 2019/10/23
[PATCH v3 28/33] smbus-eeprom: remove PROP_PTR, Marc-André Lureau, 2019/10/23
[PATCH v3 30/33] omap-i2c: remove PROP_PTR, Marc-André Lureau, 2019/10/23
[PATCH v3 31/33] omap-gpio: remove PROP_PTR, Marc-André Lureau, 2019/10/23
[PATCH v3 32/33] qdev: remove PROP_MEMORY_REGION, Marc-André Lureau, 2019/10/23
[PATCH v3 33/33] qdev: remove QDEV_PROP_PTR, Marc-André Lureau, 2019/10/23