summary refs log tree commit diff stats
path: root/target/sparc/win_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-10-14 14:01:08 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-11-05 11:52:18 -0800
commitb1fa27fcc88428f79de772825ab50cfca14bfc5f (patch)
tree42bec99e7e2c1628ae4ef0d243fe6d38eee1f409 /target/sparc/win_helper.c
parentd762bf97931b58839316b68a570eecc6143c9e3e (diff)
downloadfocaccia-qemu-b1fa27fcc88428f79de772825ab50cfca14bfc5f.tar.gz
focaccia-qemu-b1fa27fcc88428f79de772825ab50cfca14bfc5f.zip
target/sparc: Introduce cpu_put_psr_icc
Isolate linux-user from changes to icc representation.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/sparc/win_helper.c')
-rw-r--r--target/sparc/win_helper.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/sparc/win_helper.c b/target/sparc/win_helper.c
index 3a7c0ff943..bf2c90c780 100644
--- a/target/sparc/win_helper.c
+++ b/target/sparc/win_helper.c
@@ -67,9 +67,14 @@ target_ulong cpu_get_psr(CPUSPARCState *env)
 #endif
 }
 
-void cpu_put_psr_raw(CPUSPARCState *env, target_ulong val)
+void cpu_put_psr_icc(CPUSPARCState *env, target_ulong val)
 {
     env->psr = val & PSR_ICC;
+}
+
+void cpu_put_psr_raw(CPUSPARCState *env, target_ulong val)
+{
+    cpu_put_psr_icc(env, val);
 #if !defined(TARGET_SPARC64)
     env->psref = (val & PSR_EF) ? 1 : 0;
     env->psrpil = (val & PSR_PIL) >> 8;