|
| From: | Philippe Mathieu-Daudé |
| Subject: | Re: [PATCH v4 29/37] RFC: mips/cps: fix setting saar property |
| Date: | Sun, 15 Dec 2019 06:56:52 +0100 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 11/20/19 4:24 PM, Marc-André Lureau wrote:
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;
Hmmm this could be what the author of 043715d1e wanted to do indeed.Since this feature is incomplete (see comments in previous versions of this series:
$ git grep saarp hw/mips/cps.c:98: saar_present = (bool)env->saarp; target/mips/cpu.h:1103: int saarp;and I don't know how to test this, I'll defer to Aleksandar regarding this patch.
}
object_property_set_bool(OBJECT(&s->itu), true, "realized", &err);
if (err != NULL) {
| [Prev in Thread] | Current Thread | [Next in Thread] |