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:
a18ab66
)
stop using auto in mmu.h macro, use type##_t
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 19 Oct 2018 23:51:15 +0000
(
00:51
+0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 19 Oct 2018 23:51:15 +0000
(
00:51
+0100)
riscv/mmu.h
patch
|
blob
|
history
diff --git
a/riscv/mmu.h
b/riscv/mmu.h
index 0bcfb3c3cb71c8c209c83f69c52caad4babd0cac..fc8d5b3ea100b7606b1071ebd7fe2375d4cb6dd1 100644
(file)
--- a/
riscv/mmu.h
+++ b/
riscv/mmu.h
@@
-139,8
+139,8
@@
public:
if (addr & (sizeof(type##_t)-1)) \
throw trap_store_address_misaligned(addr); \
try { \
-
auto lhs =
load_##type(addr); \
- store_##type(addr, f(lhs, rhs)); \
+
type##_t lhs = mmu_t::
load_##type(addr); \
+
mmu_t::
store_##type(addr, f(lhs, rhs)); \
return lhs; \
} catch (trap_load_page_fault& t) { \
/* AMO faults should be reported as store faults */ \