diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2010-06-10 20:52:47 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-06-10 20:52:47 +0200 |
commit | d9199af61d6ead00b8393feedc4a782071d6affc (patch) | |
tree | 287e76d7129a8cf7b62305fd98571c8b2c776353 /tcg/i386 | |
parent | 4ba443a5ade18a5b9ae15fd0304294387aea5937 (diff) | |
download | qemu-d9199af61d6ead00b8393feedc4a782071d6affc.tar.gz qemu-d9199af61d6ead00b8393feedc4a782071d6affc.tar.bz2 qemu-d9199af61d6ead00b8393feedc4a782071d6affc.zip |
tcg-i386: fix andi r, r, 0xff
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/i386')
-rw-r--r-- | tcg/i386/tcg-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 8b902abd54..bb19a950bf 100644 --- 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; } |