diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-16 15:56:04 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-16 15:56:04 +0000 |
commit | 686f3f266b829b06c7b170db7b4ce97abfbfc517 (patch) | |
tree | 49fd086fcbd20afb46471e5b8db0027d2fec8b3c /target-i386/ops_template.h | |
parent | 5b1214a48ed5564e35e367864b744d81a6d4d660 (diff) |
BSR/BSF undefined behaviour fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@809 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/ops_template.h')
-rw-r--r-- | target-i386/ops_template.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/ops_template.h b/target-i386/ops_template.h index 037c4306a3..2ff1f66648 100644 --- a/target-i386/ops_template.h +++ b/target-i386/ops_template.h @@ -513,7 +513,7 @@ void OPPROTO glue(glue(op_bsf, SUFFIX), _T0_cc)(void) count++; res >>= 1; } - T0 = count; + T1 = count; CC_DST = 1; /* ZF = 0 */ } else { CC_DST = 0; /* ZF = 1 */ @@ -531,7 +531,7 @@ void OPPROTO glue(glue(op_bsr, SUFFIX), _T0_cc)(void) count--; res <<= 1; } - T0 = count; + T1 = count; CC_DST = 1; /* ZF = 0 */ } else { CC_DST = 0; /* ZF = 1 */ |