Commit 1892a0cd43 for qemu.org
commit 1892a0cd43232754a3e55feb8edd028895f65d4b
Author: Simon Xu <simonxhy0404@gmail.com>
Date: Fri Jul 24 11:09:42 2026 -0500
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>
diff --git a/hw/misc/mps2-scc.c b/hw/misc/mps2-scc.c
index 7877b31479..1ecb2879e3 100644
--- a/hw/misc/mps2-scc.c
+++ b/hw/misc/mps2-scc.c
@@ -299,7 +299,7 @@ static void mps2_scc_write(void *opaque, hwaddr offset, uint64_t value,
goto bad_offset;
}
/* AN536: Core 1 vector table base address */
- s->cfg6 = value;
+ s->cfg7 = value;
break;
case A_CFGDATA_OUT:
s->cfgdata_out = value;