switch(addr % 8)
{
case 0:
- val = mmu->load_uint64(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
- .get_data()
-#endif
- ;
+ val = mmu->load_uint64(addr);
break;
case 4:
- val = mmu->load_uint32(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
- .get_data()
-#endif
- ;
+ val = mmu->load_uint32(addr);
break;
case 2:
case 6:
- val = mmu->load_uint16(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
- .get_data()
-#endif
- ;
+ val = mmu->load_uint16(addr);
break;
default:
- val = mmu->load_uint8(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
- .get_data()
-#endif
- ;
+ val = mmu->load_uint8(addr);
break;
}
return val;
reg_t addr = strtol(args[0].c_str(),NULL,16);
char ch;
-#ifdef NOTYET_SPIKE_SIMPLEV
- while((ch = debug_mmu->load_uint8(addr++).get_data()))
- putchar(ch);
-#else
while((ch = debug_mmu->load_uint8(addr++)))
putchar(ch);
-#endif
putchar('\n');
}
void store_##type(sv_reg_t addr, type##_t val) { \
mmu_t::store_##type(addr, val); \
}
- //void store_##type(sv_reg_t addr, sv_reg_t val) {
- // mmu_t::store_##type(addr, val);
- //}
// store value to memory at aligned address
sv_store_func(uint8)
void store_float128(sv_reg_t addr, float128_t val)
{
- mmu_t::store_float128(addr /*.get_data()*/, val);
+ mmu_t::store_float128(addr, val);
}
float128_t load_float128(sv_reg_t addr)
{
- return mmu_t::load_float128(addr/*.get_data()*/);
+ return mmu_t::load_float128(addr);
}
void acquire_load_reservation(sv_reg_t vaddr)
{
- mmu_t::acquire_load_reservation(vaddr/*.get_data()*/);
+ mmu_t::acquire_load_reservation(vaddr);
}
bool check_load_reservation(sv_reg_t vaddr)
{
- return mmu_t::check_load_reservation(vaddr/*.get_data()*/);
+ return mmu_t::check_load_reservation(vaddr);
}
};