Browse Source

Merge pull request #18 from wsong83/master

fix cache line index offset in cachesim.cc
pull/19/merge
Andrew Waterman 11 years ago
parent
commit
a12b463897
  1. 2
      riscv/cachesim.cc

2
riscv/cachesim.cc

@ -45,7 +45,7 @@ void cache_sim_t::init()
help();
idx_shift = 0;
for (size_t x = linesz; x; x >>= 1)
for (size_t x = linesz; x>1; x >>= 1)
idx_shift++;
tags = new uint64_t[sets*ways]();

Loading…
Cancel
Save