@samitouri / QOSamiQemu / commits / 1892a0cd43

hw/misc/mps2-scc.c: fix cfg7 write

Change the CFG7 write function to modify the correct variable. This only affects the an536 machine currently as only it uses cfg7 to store the core 1 vector table base address. Signed-off-by: Simon Xu <simonxhy0404@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20260724160943.52509-2-simonxhy0404@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Simon Xu committed Jul 24, 2026 at 11:09 UTC 1892a0cd43232754a3e55feb8edd028895f65d4b
1 file changed +1 -1
hw/misc/mps2-scc.c
+1 -1
@@ -299,7 +299,7 @@ static void mps2_scc_write(void *opaque, hwaddr offset, uint64_t value,
299 goto bad_offset;
300 }
301 /* AN536: Core 1 vector table base address */
302 - s->cfg6 = value;
302 + s->cfg7 = value;
303 break;
304 case A_CFGDATA_OUT:
305 s->cfgdata_out = value;