aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));