aboutsummaryrefslogtreecommitdiff
path: root/target-i386/ops_template.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-21 20:23:59 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-02-21 20:23:59 +0000
commit0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09 (patch)
tree495b54460180ad0d01eada35eec9b3163829cf62 /target-i386/ops_template.h
parent194884dd6f1fee4d4c41f74649e98af04ad6f83a (diff)
loop insn fix for non x86 hosts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1305 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/ops_template.h')
-rw-r--r--target-i386/ops_template.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/target-i386/ops_template.h b/target-i386/ops_template.h
index 35d5b54121..373b77a245 100644
--- a/target-i386/ops_template.h
+++ b/target-i386/ops_template.h
@@ -339,18 +339,14 @@ void OPPROTO glue(op_jle_sub, SUFFIX)(void)
void OPPROTO glue(op_loopnz, SUFFIX)(void)
{
- int eflags;
- eflags = cc_table[CC_OP].compute_all();
- if ((DATA_TYPE)ECX != 0 && !(eflags & CC_Z))
+ if ((DATA_TYPE)ECX != 0 && !(T0 & CC_Z))
GOTO_LABEL_PARAM(1);
FORCE_RET();
}
void OPPROTO glue(op_loopz, SUFFIX)(void)
{
- int eflags;
- eflags = cc_table[CC_OP].compute_all();
- if ((DATA_TYPE)ECX != 0 && (eflags & CC_Z))
+ if ((DATA_TYPE)ECX != 0 && (T0 & CC_Z))
GOTO_LABEL_PARAM(1);
FORCE_RET();
}