]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/rx: Set exception vector base to 0xffffff80
authorKeith Packard <keithp@keithp.com>
Tue, 18 Feb 2025 21:21:00 +0000 (13:21 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Mar 2025 13:11:00 +0000 (13:11 +0000)
The documentation says the vector is at 0xffffff80, instead of the
previous value of 0xffffffc0. That value must have been a bug because
the standard vector values (20, 21, 23, 25, 30) were all
past the end of the array.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/rx/helper.c

index 7f28e729891922a5b52aba5581d3388a4ecd72ca..e8aabf40ffb4148850dc25e258783229bd78c24a 100644 (file)
@@ -88,7 +88,7 @@ void rx_cpu_do_interrupt(CPUState *cs)
         cpu_stl_data(env, env->isp, env->pc);
 
         if (vec < 0x100) {
-            env->pc = cpu_ldl_data(env, 0xffffffc0 + vec * 4);
+            env->pc = cpu_ldl_data(env, 0xffffff80 + vec * 4);
         } else {
             env->pc = cpu_ldl_data(env, env->intb + (vec & 0xff) * 4);
         }