aboutsummaryrefslogtreecommitdiff
path: root/target-m68k/op.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-09 20:48:46 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-09 20:48:46 +0000
commit0cf5c6771b216793d1fe57d25864d842570f32f6 (patch)
tree92000dc372b4b0ca953a7d5562e6d5fca7c1d28b /target-m68k/op.c
parent87ee166914e2d886b982a8d9e55c16b09a09a180 (diff)
M68K status register fixes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2967 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-m68k/op.c')
-rw-r--r--target-m68k/op.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/target-m68k/op.c b/target-m68k/op.c
index 932c994357..466fdc2342 100644
--- a/target-m68k/op.c
+++ b/target-m68k/op.c
@@ -338,10 +338,7 @@ OP(ext16s32)
OP(flush_flags)
{
- int cc_op = PARAM1;
- if (cc_op == CC_OP_DYNAMIC)
- cc_op = env->cc_op;
- cpu_m68k_flush_flags(env, cc_op);
+ cpu_m68k_flush_flags(env, env->cc_op);
FORCE_RET();
}
@@ -480,7 +477,7 @@ OP(fp_result)
OP(set_sr)
{
- env->sr = get_op(PARAM1);
+ env->sr = get_op(PARAM1) & 0xffff;
m68k_switch_sp(env);
FORCE_RET();
}