projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81570a7
)
tcg-i386: Tidy movi.
author
Richard Henderson
<rth@twiddle.net>
Fri, 21 May 2010 15:30:25 +0000
(08:30 -0700)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 21 May 2010 16:20:22 +0000
(16:20 +0000)
Define and use OPC_MOVL_Iv.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/i386/tcg-target.c
patch
|
blob
|
history
diff --git
a/tcg/i386/tcg-target.c
b/tcg/i386/tcg-target.c
index da7c3581ace93cc8200d717463d5e60e6faaa27c..2e32c5d3d709b03535cb0fd2c07146935dcffbf8 100644
(file)
--- a/
tcg/i386/tcg-target.c
+++ b/
tcg/i386/tcg-target.c
@@
-173,6
+173,7
@@
static inline int tcg_target_const_match(tcg_target_long val,
#define OPC_MOVB_EvGv (0x88) /* stores, more or less */
#define OPC_MOVL_EvGv (0x89) /* stores, more or less */
#define OPC_MOVL_GvEv (0x8b) /* loads, more or less */
+#define OPC_MOVL_Iv (0xb8)
#define OPC_MOVSBL (0xbe | P_EXT)
#define OPC_MOVSWL (0xbf | P_EXT)
#define OPC_MOVZBL (0xb6 | P_EXT)
@@
-300,7
+301,7
@@
static inline void tcg_out_movi(TCGContext *s, TCGType type,
if (arg == 0) {
tgen_arithr(s, ARITH_XOR, ret, ret);
} else {
- tcg_out8(s,
0xb8
+ ret);
+ tcg_out8(s,
OPC_MOVL_Iv
+ ret);
tcg_out32(s, arg);
}
}