projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a7393d
)
Fix 32-bit host portability bug
author
Andrew Waterman
<andrew@sifive.com>
Mon, 14 Nov 2016 00:10:30 +0000
(16:10 -0800)
committer
Andrew Waterman
<andrew@sifive.com>
Mon, 14 Nov 2016 00:10:45 +0000
(16:10 -0800)
riscv/mmu.h
patch
|
blob
|
history
diff --git
a/riscv/mmu.h
b/riscv/mmu.h
index 105908e5b7de4baf4056c46ad43d484442e254c5..34bcf99be27b187946774ac5dd41aeb66b2bd21c 100644
(file)
--- a/
riscv/mmu.h
+++ b/
riscv/mmu.h
@@
-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];