summaryrefslogtreecommitdiff
path: root/target-s390x/cc_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-08-24 07:39:11 -0700
committerRichard Henderson <rth@twiddle.net>2013-01-05 12:18:41 -0800
commit102bf2c63535122cba0d7917ed8cfb8cc1c7b14c (patch)
treef66ce31acb76df233d7a75d908795eac19ea31e0 /target-s390x/cc_helper.c
parent683bb9a8889cd00e69b05ba78bd5ba27f2e4e958 (diff)
downloadqemu-102bf2c63535122cba0d7917ed8cfb8cc1c7b14c.zip
target-s390: Convert FLOGR
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-s390x/cc_helper.c')
-rw-r--r--target-s390x/cc_helper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/target-s390x/cc_helper.c b/target-s390x/cc_helper.c
index f1038be1b5..e3bed16bd3 100644
--- a/target-s390x/cc_helper.c
+++ b/target-s390x/cc_helper.c
@@ -399,6 +399,11 @@ static uint32_t cc_calc_sla_64(uint64_t src, int shift)
return 2;
}
+static uint32_t cc_calc_flogr(uint64_t dst)
+{
+ return dst ? 2 : 0;
+}
+
static uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op,
uint64_t src, uint64_t dst, uint64_t vr)
{
@@ -504,6 +509,9 @@ static uint32_t do_calc_cc(CPUS390XState *env, uint32_t cc_op,
case CC_OP_SLA_64:
r = cc_calc_sla_64(src, dst);
break;
+ case CC_OP_FLOGR:
+ r = cc_calc_flogr(dst);
+ break;
case CC_OP_NZ_F32:
r = set_cc_nz_f32(dst);