sim-card
/
qemu
Archived
10
0
Fork 0

tcg/ppc64: Fix loading of 32bit constants

Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
malc 2009-12-15 19:44:20 +03:00
parent d9a50a366f
commit 591d6f1dfd
1 changed files with 2 additions and 1 deletions

View File

@ -463,8 +463,9 @@ static void tcg_out_movi (TCGContext *s, TCGType type,
int ret, tcg_target_long arg)
{
int32_t arg32 = arg;
arg = type == TCG_TYPE_I32 ? arg & 0xffffffff : arg;
if (type == TCG_TYPE_I32 || arg == arg32) {
if (arg == arg32) {
tcg_out_movi32 (s, ret, arg32);
}
else {