aboutsummaryrefslogtreecommitdiff
path: root/target-arm
diff options
context:
space:
mode:
authorChih-Min Chao <cmchao@gmail.com>2010-06-28 23:54:04 +0800
committerAurelien Jarno <aurelien@aurel32.net>2010-07-01 23:45:29 +0200
commitbb42e28bdb56a05faca83bd760c1581af2f73a4b (patch)
treee71982e923775134f43aaa9306ee8c5fe1da5860 /target-arm
parentd6f3a845113ec6f85e003c8214e96b8ac6fc2743 (diff)
downloadqemu-bb42e28bdb56a05faca83bd760c1581af2f73a4b.zip
qemu-bb42e28bdb56a05faca83bd760c1581af2f73a4b.tar.gz
qemu-bb42e28bdb56a05faca83bd760c1581af2f73a4b.tar.bz2
target-arm: fix addsub/subadd implementation
Signed-off-by: Chih-Min Chao <cmchao@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-arm')
-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 29f77ba..c02c92a 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;
}