From ad1a5b7853dbc510a9f6c9628ff623148d06c9d5 Mon Sep 17 00:00:00 2001 From: bellard Date: Mon, 24 Apr 2006 20:19:07 +0000 Subject: rol/ror cc fix git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1845 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/ops_template_mem.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target-i386') diff --git a/target-i386/ops_template_mem.h b/target-i386/ops_template_mem.h index a999e2d440..9f72a8c965 100644 --- a/target-i386/ops_template_mem.h +++ b/target-i386/ops_template_mem.h @@ -73,8 +73,8 @@ void OPPROTO glue(glue(op_rol, MEM_SUFFIX), _T0_T1_cc)(void) int count; target_long src; - count = T1 & SHIFT_MASK; - if (count) { + if (T1 & SHIFT1_MASK) { + count = T1 & SHIFT_MASK; src = T0; T0 &= DATA_MASK; T0 = (T0 << count) | (T0 >> (DATA_BITS - count)); @@ -97,8 +97,8 @@ void OPPROTO glue(glue(op_ror, MEM_SUFFIX), _T0_T1_cc)(void) int count; target_long src; - count = T1 & SHIFT_MASK; - if (count) { + if (T1 & SHIFT1_MASK) { + count = T1 & SHIFT_MASK; src = T0; T0 &= DATA_MASK; T0 = (T0 >> count) | (T0 << (DATA_BITS - count)); -- cgit v1.2.3