qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 69/74] target/rx: Fix the base of the fixed vector table


From: Richard Henderson
Subject: [PATCH v2 69/74] target/rx: Fix the base of the fixed vector table
Date: Tue, 3 May 2022 12:48:38 -0700

This begins at 0xffffff80 not 0xffffffc0.
This has caused exceptions to wrap around
to low memory instead of being at the top.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/rx/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/rx/helper.c b/target/rx/helper.c
index f34945e7e2..c6e285657e 100644
--- a/target/rx/helper.c
+++ b/target/rx/helper.c
@@ -91,7 +91,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);
         }
-- 
2.34.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]