[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] target/tricore: Fix wrong PSW for call insns
From: |
Bastian Koppelmann |
Subject: |
[PULL 5/6] target/tricore: Fix wrong PSW for call insns |
Date: |
Wed, 7 Jun 2023 18:24:39 +0200 |
we were copying PSW into a local variable, updated PSW.CDE in the local
and never wrote it back. So when we called save_context_upper() we were
using the non-local version of PSW which did not contain the updated
PSW.CDE.
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-Id: <20230526061946.54514-6-kbastian@mail.uni-paderborn.de>
---
target/tricore/op_helper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/tricore/op_helper.c b/target/tricore/op_helper.c
index 6fd2cbe20f..54f54811d9 100644
--- a/target/tricore/op_helper.c
+++ b/target/tricore/op_helper.c
@@ -2447,6 +2447,8 @@ void helper_call(CPUTriCoreState *env, uint32_t next_pc)
}
/* PSW.CDE = 1;*/
psw |= MASK_PSW_CDE;
+ psw_write(env, psw);
+
/* tmp_FCX = FCX; */
tmp_FCX = env->FCX;
/* EA = {FCX.FCXS, 6'b0, FCX.FCXO, 6'b0}; */
--
2.40.1
- [PULL 0/6] tricore queue, Bastian Koppelmann, 2023/06/07
- [PULL 1/6] tests/tcg/tricore: Move asm tests into 'asm' directory, Bastian Koppelmann, 2023/06/07
- [PULL 2/6] tests/tcg/tricore: Uses label for memory addresses, Bastian Koppelmann, 2023/06/07
- [PULL 3/6] tests/tcg/tricore: Add first C program, Bastian Koppelmann, 2023/06/07
- [PULL 5/6] target/tricore: Fix wrong PSW for call insns,
Bastian Koppelmann <=
- [PULL 4/6] target/tricore: Refactor PCXI/ICR register fields, Bastian Koppelmann, 2023/06/07
- [PULL 6/6] tests/tcg/tricore: Add recursion test for CSAs, Bastian Koppelmann, 2023/06/07
- Re: [PULL 0/6] tricore queue, Richard Henderson, 2023/06/08