stop using auto in mmu.h macro, use type##_t
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Oct 2018 23:51:15 +0000 (00:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Oct 2018 23:51:15 +0000 (00:51 +0100)
riscv/mmu.h

index 0bcfb3c3cb71c8c209c83f69c52caad4babd0cac..fc8d5b3ea100b7606b1071ebd7fe2375d4cb6dd1 100644 (file)
@@ -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 */ \