aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Min Chao <cmchao@gmail.com>2010-06-28 23:54:04 +0800
committerDoug Goldstein <cardoe@gentoo.org>2010-07-20 17:42:38 -0500
commit46fd8a284ac1738b1757292478d10d8ee7ee130a (patch)
treecadf9916dd8082cef6a9d205728085061e42dbdd
parentblock: Handle multiwrite errors only when all requests have completed (diff)
downloadqemu-kvm-46fd8a284ac1738b1757292478d10d8ee7ee130a.tar.gz
qemu-kvm-46fd8a284ac1738b1757292478d10d8ee7ee130a.tar.bz2
qemu-kvm-46fd8a284ac1738b1757292478d10d8ee7ee130a.zip
target-arm: fix addsub/subadd implementation
Signed-off-by: Chih-Min Chao <cmchao@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> (cherry picked from commit bb42e28bdb56a05faca83bd760c1581af2f73a4b)
-rw-r--r--target-arm/op_addsub.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-arm/op_addsub.h b/target-arm/op_addsub.h
index 29f77ba18..c02c92adf 100644
--- a/target-arm/op_addsub.h
+++ b/target-arm/op_addsub.h
@@ -73,8 +73,8 @@ uint32_t HELPER(glue(PFX,subaddx))(uint32_t a, uint32_t b GE_ARG)
uint32_t res = 0;
DECLARE_GE;
- ADD16(a, b, 0);
- SUB16(a >> 16, b >> 16, 1);
+ ADD16(a, b >> 16, 0);
+ SUB16(a >> 16, b, 1);
SET_GE;
return res;
}
@@ -84,8 +84,8 @@ uint32_t HELPER(glue(PFX,addsubx))(uint32_t a, uint32_t b GE_ARG)
uint32_t res = 0;
DECLARE_GE;
- SUB16(a, b, 0);
- ADD16(a >> 16, b >> 16, 1);
+ SUB16(a, b >> 16, 0);
+ ADD16(a >> 16, b, 1);
SET_GE;
return res;
}