[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 03/10] target-tricore: Fix psw_read() clearing too ma
From: |
Bastian Koppelmann |
Subject: |
[Qemu-devel] [PULL 03/10] target-tricore: Fix psw_read() clearing too many bits |
Date: |
Tue, 22 Mar 2016 14:46:19 +0100 |
psw_read() ought to sync the PSW value with the
cached status bits (C,V,SV,AV,SAV). For this the bits
are cleared in the PSW before they are written from the
cached bits. The clear mask is too big and clears two
additional bits.
Signed-off-by: Bastian Koppelmann <address@hidden>
Message-Id: <address@hidden>
---
target-tricore/helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-tricore/helper.c b/target-tricore/helper.c
index 7d96dad..adbb6db 100644
--- a/target-tricore/helper.c
+++ b/target-tricore/helper.c
@@ -113,7 +113,7 @@ void tricore_cpu_list(FILE *f, fprintf_function cpu_fprintf)
uint32_t psw_read(CPUTriCoreState *env)
{
/* clear all USB bits */
- env->PSW &= 0xffffff;
+ env->PSW &= 0x6ffffff;
/* now set them from the cache */
env->PSW |= ((env->PSW_USB_C != 0) << 31);
env->PSW |= ((env->PSW_USB_V & (1 << 31)) >> 1);
--
2.7.4
- [Qemu-devel] [PULL 00/10] tricore-patches, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 07/10] target-tricore: Add mul.f instruction, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 05/10] target-tricore: Move general CHECK_REG_PAIR of decode_rrr_divide, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 01/10] target-tricore: add missing break in insn decode switch stmt, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 04/10] target-tricore: Add FPU infrastructure, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 10/10] target-tricore: Add ftoi and itof instructions, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 09/10] target-tricore: Add cmp.f instruction, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 08/10] target-tricore: Add div.f instruction, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 03/10] target-tricore: Fix psw_read() clearing too many bits,
Bastian Koppelmann <=
- [Qemu-devel] [PULL 06/10] target-tricore: add add.f/sub.f instructions, Bastian Koppelmann, 2016/03/22
- [Qemu-devel] [PULL 02/10] target-tricore: Fix helper_msub64_q_ssov not reseting OVF bit, Bastian Koppelmann, 2016/03/22
- Re: [Qemu-devel] [PULL 00/10] tricore-patches, Peter Maydell, 2016/03/22