aboutsummaryrefslogtreecommitdiff
path: root/target-i386/ops_template_mem.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-24 20:19:07 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-24 20:19:07 +0000
commitad1a5b7853dbc510a9f6c9628ff623148d06c9d5 (patch)
tree3a6141dd44f6ee7937be841efa62e948af4aabe9 /target-i386/ops_template_mem.h
parent6c3ee14ff37551b0a490aeca6f7fc45aae3424e3 (diff)
rol/ror cc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1845 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/ops_template_mem.h')
-rw-r--r--target-i386/ops_template_mem.h8
1 files changed, 4 insertions, 4 deletions
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));