projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6f3a84
)
target-arm: fix addsub/subadd implementation
author
Chih-Min Chao
<cmchao@gmail.com>
Mon, 28 Jun 2010 15:54:04 +0000
(23:54 +0800)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Thu, 1 Jul 2010 21:45:29 +0000
(23:45 +0200)
Signed-off-by: Chih-Min Chao <cmchao@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/op_addsub.h
patch
|
blob
|
history
diff --git
a/target-arm/op_addsub.h
b/target-arm/op_addsub.h
index 29f77ba18d5d4c7a82600e189e178b25692cb412..c02c92adfa2ba8b3b853ee3a38eafe62f274ff54 100644
(file)
--- 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;
}