x49gp/qemu/patches/qemu-0.9.0-arm-shift.patch

20 lines
529 B
Diff

--- qemu-0.9.0/target-arm/op.c 2007-07-23 06:57:25.000000000 +0200
+++ qemu/target-arm/op.c 2007-07-23 06:58:25.000000000 +0200
@@ -819,7 +819,7 @@
int shift;
shift = PARAM1;
if (shift != 0) {
- env->CF = (T1 >> (32 - shift)) & 1;
+ env->CF = (T0 >> (32 - shift)) & 1;
T0 = T0 << shift;
}
env->NZF = T0;
@@ -832,7 +832,7 @@
shift = PARAM1;
if (shift == 0) {
- env->CF = ((uint32_t)shift) >> 31;
+ env->CF = ((uint32_t)T0) >> 31;
T0 = 0;
} else {
env->CF = (T0 >> (shift - 1)) & 1;