Fix 32-bit host portability bug
authorAndrew Waterman <andrew@sifive.com>
Mon, 14 Nov 2016 00:10:30 +0000 (16:10 -0800)
committerAndrew Waterman <andrew@sifive.com>
Mon, 14 Nov 2016 00:10:45 +0000 (16:10 -0800)
riscv/mmu.h

index 105908e5b7de4baf4056c46ad43d484442e254c5..34bcf99be27b187946774ac5dd41aeb66b2bd21c 100644 (file)
@@ -202,7 +202,7 @@ private:
   static const reg_t TLB_ENTRIES = 256;
   // If a TLB tag has TLB_CHECK_TRIGGERS set, then the MMU must check for a
   // trigger match before completing an access.
-  static const reg_t TLB_CHECK_TRIGGERS = 1L<<63;
+  static const reg_t TLB_CHECK_TRIGGERS = reg_t(1) << 63;
   char* tlb_data[TLB_ENTRIES];
   reg_t tlb_insn_tag[TLB_ENTRIES];
   reg_t tlb_load_tag[TLB_ENTRIES];