From 8027941b705e219fd202b7c01d5a4a311670cbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 7 Apr 2018 21:13:42 +0200 Subject: Add initial implementatio of caches --- qtmips_machine/machineconfig.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qtmips_machine/machineconfig.h') diff --git a/qtmips_machine/machineconfig.h b/qtmips_machine/machineconfig.h index a713a4c..42406ff 100644 --- a/qtmips_machine/machineconfig.h +++ b/qtmips_machine/machineconfig.h @@ -37,7 +37,7 @@ public: // If cache should be used or not void set_enabled(bool); - void set_sets(unsigned); // Number of sets bits used in cache + void set_sets(unsigned); // Number of set void set_blocks(unsigned); // Number of blocks void set_associativity(unsigned); // Degree of associativity void set_replacement_policy(enum ReplacementPolicy); @@ -125,4 +125,6 @@ private: } +Q_DECLARE_METATYPE(machine::MachineConfigCache) + #endif // MACHINECONFIG_H -- cgit v1.2.3