projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc57c11
)
tcg/ppc: Fix right rotation
author
malc
<av1474@comtv.ru>
Fri, 26 Feb 2010 22:59:47 +0000
(
01:59
+0300)
committer
malc
<av1474@comtv.ru>
Fri, 26 Feb 2010 23:00:00 +0000
(
02:00
+0300)
Signed-off-by: malc <av1474@comtv.ru>
tcg/ppc/tcg-target.c
patch
|
blob
|
history
diff --git
a/tcg/ppc/tcg-target.c
b/tcg/ppc/tcg-target.c
index 96cc46190033f70fe2486f34d1764457b17cb17c..b40246d411c94bd20231497341dd4256783d2e88 100644
(file)
--- a/
tcg/ppc/tcg-target.c
+++ b/
tcg/ppc/tcg-target.c
@@
-328,6
+328,7
@@
static int tcg_target_const_match(tcg_target_long val,
#define MULLI OPCD( 7)
#define CMPLI OPCD(10)
#define CMPI OPCD(11)
+#define SUBFIC OPCD( 8)
#define LWZU OPCD(33)
#define STWU OPCD(37)
@@
-1588,7
+1589,7
@@
static void tcg_out_op(TCGContext *s, int opc, const TCGArg *args,
}
}
else {
- tcg_out32 (s,
ADDI | RT (0) | RA (args[2]) | 0xffe0
);
+ tcg_out32 (s,
SUBFIC | RT (0) | RA (args[2]) | 32
);
tcg_out32 (s, RLWNM
| RA (args[0])
| RS (args[1])