mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tcg-i386: fix andi r, r, 0xff
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
447d681e8b
commit
dc397ca35e
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ static void tgen_arithi(TCGContext *s, int c, int r0,
|
||||||
rexw = 0;
|
rexw = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (val == 0xffu) {
|
if (val == 0xffu && (r0 < 4 || TCG_TARGET_REG_BITS == 64)) {
|
||||||
tcg_out_ext8u(s, r0, r0);
|
tcg_out_ext8u(s, r0, r0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue