projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d9a53
)
ruby: cache memory bugfix
author
Derek Hower
<drh5@cs.wisc.edu>
Fri, 13 Nov 2009 15:42:47 +0000
(09:42 -0600)
committer
Derek Hower
<drh5@cs.wisc.edu>
Fri, 13 Nov 2009 15:42:47 +0000
(09:42 -0600)
src/mem/ruby/system/CacheMemory.hh
patch
|
blob
|
history
diff --git
a/src/mem/ruby/system/CacheMemory.hh
b/src/mem/ruby/system/CacheMemory.hh
index aeb52ba2eb41f82f007b18b14004db6c28ae4996..7268189ea0c0374b675408fe63d1bb47a9c80383 100644
(file)
--- a/
src/mem/ruby/system/CacheMemory.hh
+++ b/
src/mem/ruby/system/CacheMemory.hh
@@
-218,7
+218,8
@@
void CacheMemory::init(const vector<string> & argv)
}
}
- m_cache_num_sets = cache_size / m_cache_assoc;
+ int num_lines = (cache_size*1024)/RubySystem::getBlockSizeBytes();
+ m_cache_num_sets = num_lines / m_cache_assoc;
m_cache_num_set_bits = log_int(m_cache_num_sets);
if(policy == "PSEUDO_LRU")