tcg/i386: Extend TARGET_PAGE_MASK to the proper type
[qemu.git] / tcg / i386 / tcg-target.inc.c
index cf7536bd52b660b24d946a9df145e88f258b9c76..eeb1777bbb5bfc25e438f8bb2102bc2f89fd1274 100644 (file)
@@ -1243,7 +1243,7 @@ static inline void tcg_out_tlb_load(TCGContext *s, TCGReg addrlo, TCGReg addrhi,
     } else {
         tcg_out_modrm_offset(s, OPC_LEA + trexw, r1, addrlo, s_mask - a_mask);
     }
-    tlb_mask = TARGET_PAGE_MASK | a_mask;
+    tlb_mask = (target_ulong)TARGET_PAGE_MASK | a_mask;
 
     tcg_out_shifti(s, SHIFT_SHR + tlbrexw, r0,
                    TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS);
This page took 0.0207000000000001 seconds and 4 git commands to generate.