aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.h
diff options
context:
space:
mode:
authorliweiwei <liweiwei@iscas.ac.cn>2021-12-27 11:00:27 +0800
committerWeiwei Li <liweiwei@iscas.ac.cn>2022-01-29 17:22:33 +0800
commit42cbf10dc1f6c6ce0a9591a53be2555f75da6c87 (patch)
tree8953ce7e6a245a277faf08d0b8cdab46133de7b8 /riscv/mmu.h
parent4557eef7005d648953ec00210c84cc234e1dd1eb (diff)
downloadspike-42cbf10dc1f6c6ce0a9591a53be2555f75da6c87.zip
spike-42cbf10dc1f6c6ce0a9591a53be2555f75da6c87.tar.gz
spike-42cbf10dc1f6c6ce0a9591a53be2555f75da6c87.tar.bz2
add blocksz parameter to specify the cache block size for CBO operations
Diffstat (limited to 'riscv/mmu.h')
-rw-r--r--riscv/mmu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/mmu.h b/riscv/mmu.h
index 0b86f6c..af11078 100644
--- a/riscv/mmu.h
+++ b/riscv/mmu.h
@@ -389,12 +389,18 @@ public:
return target_big_endian? target_endian<T>::to_be(n) : target_endian<T>::to_le(n);
}
+ void set_cache_blocksz(uint64_t size)
+ {
+ blocksz = size;
+ }
+
private:
simif_t* sim;
processor_t* proc;
memtracer_list_t tracer;
reg_t load_reservation_address;
uint16_t fetch_temp;
+ uint64_t blocksz;
// implement an instruction cache for simulator performance
icache_entry_t icache[ICACHE_ENTRIES];