aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-05-23 20:23:10 +0200
committerKarel Kočí <cynerd@email.cz>2018-05-23 20:23:10 +0200
commitddde26b916c99078421992100849101455756415 (patch)
tree25a8dee1fb6ae3a78d5a46e2aabd5aa4f8bb7fb3 /qtmips_machine/qtmipsmachine.cpp
parentf1fc0fc1ad628d19382fe2a026a767af6f6ba12f (diff)
downloadqtmips-ddde26b916c99078421992100849101455756415.tar.gz
qtmips-ddde26b916c99078421992100849101455756415.tar.bz2
qtmips-ddde26b916c99078421992100849101455756415.zip
Add cache statistics
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r--qtmips_machine/qtmipsmachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp
index 4a2b0f2..da4516a 100644
--- a/qtmips_machine/qtmipsmachine.cpp
+++ b/qtmips_machine/qtmipsmachine.cpp
@@ -13,8 +13,8 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc) : QObject(), mcnf(&cc) {
regs = new Registers();
mem = new Memory(*mem_program_only);
- cch_program = new Cache(mem, &cc.cache_program());
- cch_data = new Cache(mem, &cc.cache_data());
+ cch_program = new Cache(mem, &cc.cache_program(), cc.memory_access_time_read(), cc.memory_access_time_write());
+ cch_data = new Cache(mem, &cc.cache_data(), cc.memory_access_time_read(), cc.memory_access_time_write());
if (cc.pipelined())
cr = new CorePipelined(regs, cch_program, cch_data, cc.hazard_unit());