mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
loop insn fix for non x86 hosts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1305 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
194884dd6f
commit
0b9dc5e4c3
3 changed files with 9 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue