Revisão | ebb90a005da67147245cd38fb04a965a87a961b7 (tree) |
---|---|
Hora | 2016-09-21 03:45:30 |
Autor | Richard Henderson <rth@twid...> |
Commiter | Richard Henderson |
tcg/i386: Extend TARGET_PAGE_MASK to the proper type
TARGET_PAGE_MASK, as defined, has type "int". We need to extend
that to the proper target width before oring in an "unsigned".
Signed-off-by: Richard Henderson <rth@twiddle.net>
@@ -1243,7 +1243,7 @@ static inline void tcg_out_tlb_load(TCGContext *s, TCGReg addrlo, TCGReg addrhi, | ||
1243 | 1243 | } else { |
1244 | 1244 | tcg_out_modrm_offset(s, OPC_LEA + trexw, r1, addrlo, s_mask - a_mask); |
1245 | 1245 | } |
1246 | - tlb_mask = TARGET_PAGE_MASK | a_mask; | |
1246 | + tlb_mask = (target_ulong)TARGET_PAGE_MASK | a_mask; | |
1247 | 1247 | |
1248 | 1248 | tcg_out_shifti(s, SHIFT_SHR + tlbrexw, r0, |
1249 | 1249 | TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS); |