hvf: arm: Fix hvf_sysreg_read_cp() call
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.
--- target/arm/hvf/hvf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/arm/hvf/hvf.c +1 -1
@@ -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]>
Quoted 8 lines · Akihiko Odaki
Commit
05b8d7249109("hvf: arm: Do not advance PC when raising an exception") changed val fromuint64_tto a pointer touint64_tinhvf_sysreg_read(), but didn't change itshvf_sysreg_read_cp()call.Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")Reported-by Richard Henderson <[email protected]>Signed-off-by Akihiko Odaki <[email protected]>
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
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Akihiko Odaki
Commit
05b8d7249109("hvf: arm: Do not advance PC when raising an exception") changed val fromuint64_tto a pointer touint64_tinhvf_sysreg_read(), but didn't change itshvf_sysreg_read_cp()call.
Quoted 7 lines
Quoted 3 lines
Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")Reported-by Richard Henderson <[email protected]>Signed-off-by Akihiko Odaki <[email protected]>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~
Quoted 5 lines · Akihiko Odaki
Commit
05b8d7249109("hvf: arm: Do not advance PC when raising an exception") changed val fromuint64_tto a pointer touint64_tinhvf_sysreg_read(), but didn't change itshvf_sysreg_read_cp()call.Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")
Not 05b8d7249109 but e9e640148c.
Updating description:
Quoted 5 lines
Reported-by Richard Henderson <[email protected]>Signed-off-by Akihiko Odaki <[email protected]>--- target/arm/hvf/hvf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Richard Henderson
AppliedQuoted 10 lines · Akihiko Odaki
Commit
05b8d7249109("hvf: arm: Do not advance PC when raising an exception") changed val fromuint64_tto a pointer touint64_tinhvf_sysreg_read(), but didn't change itshvf_sysreg_read_cp()call.Fixes 05b8d7249109 ("hvf: arm: Do not advance PC when raising an exception")Reported-by Richard Henderson<[email protected]>Signed-off-by Akihiko Odaki<[email protected]>--- target/arm/hvf/hvf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks.
r~