@samitouri / QOSamiQemu / commits / 4b263689ba

hw/misc/iotkit-secctl.c: fix AHB secure read

Fix AHB secure privilege to read AHB instead of APB. Fixes: b3717c23e1c0 ("hw/misc/iotkit-secctl: Add handling for PPCs") Reviewed-by: Owen Giles <owen.giles@hpe.com> Reviewed-by: Robert Elliott <elliott@hpe.com> Signed-off-by: Simon Xu <simonxhy0404@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Simon Xu committed Aug 18, 2026 at 10:39 UTC 4b263689baafeb3976a0cdeef35deaea8f0190e9
1 file changed +1 -1
hw/misc/iotkit-secctl.c
+1 -1
@@ -195,7 +195,7 @@ static MemTxResult iotkit_secctl_s_read(void *opaque, hwaddr addr,
195 case A_AHBSPPPCEXP1:
196 case A_AHBSPPPCEXP2:
197 case A_AHBSPPPCEXP3:
198 - r = s->apbexp[offset_to_ppc_idx(offset)].sp;
198 + r = s->ahbexp[offset_to_ppc_idx(offset)].sp;
199 break;
200 case A_APBSPPPC0:
201 case A_APBSPPPC1: