From 08d7e3dabd81e9d6e4f73aa5889a1d709242177c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 3 Jan 2018 17:52:45 +0100 Subject: Allow delay slot disable for non-pipelined core --- qtmips_machine/core.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qtmips_machine/core.h') diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h index b09e297..7d38d79 100644 --- a/qtmips_machine/core.h +++ b/qtmips_machine/core.h @@ -70,12 +70,13 @@ protected: class CoreSingle : public Core { public: - CoreSingle(Registers *regs, MemoryAccess *mem); + CoreSingle(Registers *regs, MemoryAccess *mem, bool jmp_delay_slot); + ~CoreSingle(); void step(); private: - struct Core::dtDecode jmp_delay_decode; + struct Core::dtDecode *jmp_delay_decode; }; class CorePipelined : public Core { -- cgit v1.2.3