• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisãoebb90a005da67147245cd38fb04a965a87a961b7 (tree)
Hora2016-09-21 03:45:30
AutorRichard Henderson <rth@twid...>
CommiterRichard Henderson

Mensagem de Log

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>

Mudança Sumário

Diff

--- a/tcg/i386/tcg-target.inc.c
+++ b/tcg/i386/tcg-target.inc.c
@@ -1243,7 +1243,7 @@ static inline void tcg_out_tlb_load(TCGContext *s, TCGReg addrlo, TCGReg addrhi,
12431243 } else {
12441244 tcg_out_modrm_offset(s, OPC_LEA + trexw, r1, addrlo, s_mask - a_mask);
12451245 }
1246- tlb_mask = TARGET_PAGE_MASK | a_mask;
1246+ tlb_mask = (target_ulong)TARGET_PAGE_MASK | a_mask;
12471247
12481248 tcg_out_shifti(s, SHIFT_SHR + tlbrexw, r0,
12491249 TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS);