sv_mmu_t(simif_t* sim, processor_t* proc) : mmu_t(sim, proc) {}
#define sv_load_func(type) \
- inline sv_reg_t load_##type(reg_t addr) { \
+ inline sv_reg_t load_##type(reg_t const& addr) { \
type##_t v = mmu_t::load_##type(addr); \
return sv_reg_t(v); \
}
sv_load_func(int64)
#define sv_store_func(type) \
- void store_##type(sv_reg_t addr, type##_t val) { \
+ void store_##type(sv_reg_t const& addr, type##_t val) { \
mmu_t::store_##type(addr, val); \
}
#define sv_amo_func(type) \
template<typename _op> \
- sv_reg_t amo_##type(sv_reg_t addr, sv_reg_t rhs, _op f) { \
+ sv_reg_t amo_##type(sv_reg_t const& addr, sv_reg_t const& rhs, _op f) { \
type##_t v = mmu_t::amo_##type(addr, rhs, f); \
return sv_reg_t(v); \
}
sv_amo_func(uint32)
sv_amo_func(uint64)
- void store_float128(sv_reg_t addr, float128_t val)
+ void store_float128(sv_reg_t const& addr, float128_t val)
{
mmu_t::store_float128(addr, val);
}
- float128_t load_float128(sv_reg_t addr)
+ float128_t load_float128(sv_reg_t const& addr)
{
return mmu_t::load_float128(addr);
}
- void acquire_load_reservation(sv_reg_t vaddr)
+ void acquire_load_reservation(sv_reg_t const& vaddr)
{
mmu_t::acquire_load_reservation(vaddr);
}
- bool check_load_reservation(sv_reg_t vaddr)
+ bool check_load_reservation(sv_reg_t const& vaddr)
{
return mmu_t::check_load_reservation(vaddr);
}