summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--target-tricore/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-tricore/helper.c b/target-tricore/helper.c
index 7d96daddb1..adbb6db10d 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);