Commit 4e8b5da233d453e60753a3c6326c807c73886c26
1 parent
c7f74643
MULSCC fix (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1051 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
target-sparc/op.c
| ... | ... | @@ -259,10 +259,10 @@ void OPPROTO op_smul_T1_T0(void) |
| 259 | 259 | |
| 260 | 260 | void OPPROTO op_mulscc_T1_T0(void) |
| 261 | 261 | { |
| 262 | - unsigned int b1, C, V, b2, src1; | |
| 263 | - C = FLAG_SET(PSR_CARRY); | |
| 262 | + unsigned int b1, N, V, b2, src1; | |
| 263 | + N = FLAG_SET(PSR_NEG); | |
| 264 | 264 | V = FLAG_SET(PSR_OVF); |
| 265 | - b1 = C ^ V; | |
| 265 | + b1 = N ^ V; | |
| 266 | 266 | b2 = T0 & 1; |
| 267 | 267 | T0 = (b1 << 31) | (T0 >> 1); |
| 268 | 268 | if (!(env->y & 1)) | ... | ... |