Skip to contentSkip to conversation

hvf: arm: Fix hvf_sysreg_read_cp() call

PATCH Applied Akihiko Odaki 4 participants 5 messages Aug 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hvf: arm: Fix hvf_sysreg_read_cp() call

Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception") changed val from uint64_t to a pointer to uint64_t in hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.

Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
---
 target/arm/hvf/hvf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/arm/hvf/hvf.c +1 -1
index c1496ad5be9b..ace83671b594 100644
@@ -1280,7 +1280,7 @@ static int hvf_sysreg_read(CPUState *cpu, uint32_t reg, uint64_t *val)
     case SYSREG_ICC_SRE_EL1:
     case SYSREG_ICC_CTLR_EL1:
         /* Call the TCG sysreg handler. This is only safe for GICv3 regs. */
-        if (hvf_sysreg_read_cp(cpu, reg, &val)) {
+        if (hvf_sysreg_read_cp(cpu, reg, val)) {
             return 0;
         }
         break;

---
base-commit: 31669121a01a14732f57c49400bc239cf9fd505f
change-id: 20240802-hvf-40971c54eccf

Best regards,

Signature · 1 line
Akihiko Odaki <[email protected]>
#1 lore raw
Quoted 8 lines · Akihiko Odaki

Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception") changed val from uint64_t to a pointer to uint64_t in hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.

Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")

Richard: I'm not going to be back at work til next Thursday:
feel free to grab this and apply directly to fix the cirrus build.

thanks
-- PMM

#2 lore raw
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Akihiko Odaki

Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception") changed val from uint64_t to a pointer to uint64_t in hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.

Quoted 7 lines
Quoted 3 lines
Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")

Richard: I'm not going to be back at work til next Thursday:
feel free to grab this and apply directly to fix the cirrus build.

Will do, thanks for the heads up.

r~

Reviewed-by on v1 1/1
#3 lore raw
In reply to Akihiko Odaki
Quoted 5 lines · Akihiko Odaki

Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception") changed val from uint64_t to a pointer to uint64_t in hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.

Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")

Not 05b8d7249109 but e9e640148c.

Fixes e9e640148c ("hvf: arm: Raise an exception for sysreg by default")

Updating description:

Quoted 5 lines
---
  target/arm/hvf/hvf.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
#4 lore raw
In reply to Akihiko Odaki
Quoted 10 lines · Akihiko Odaki

Commit 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception") changed val from uint64_t to a pointer to uint64_t in hvf_sysreg_read(), but didn't change its hvf_sysreg_read_cp() call.

Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
---
  target/arm/hvf/hvf.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

r~