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:
447d681
)
tcg-i386: fix andi r, r, 0xff
author
Aurelien Jarno
<aurelien@aurel32.net>
Thu, 10 Jun 2010 18:52:47 +0000
(20:52 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Thu, 10 Jun 2010 18:52:47 +0000
(20:52 +0200)
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 8b902abd54fbb7e5273bdff6bfd54efc540bcf16..bb19a950bf50b1516ac32975eeb0acd86f600b86 100644
(file)
--- a/
tcg/i386/tcg-target.c
+++ b/
tcg/i386/tcg-target.c
@@
-679,7
+679,7
@@
static void tgen_arithi(TCGContext *s, int c, int r0,
rexw = 0;
}
}
- if (val == 0xffu) {
+ if (val == 0xffu
&& (r0 < 4 || TCG_TARGET_REG_BITS == 64)
) {
tcg_out_ext8u(s, r0, r0);
return;
}