From e6c3d5bdc7a4763bd6816d52b0d1b42a7e4b08f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 6 Mar 2018 22:08:53 +0100 Subject: WIP: simplify memory view This removes problematic buffer zone of memory view. Instead we will use no buffer zone and load needed elements as soon as possible. --- qtmips_machine/cache.cpp | 1 + qtmips_machine/core.cpp | 1 + qtmips_machine/machineconfig.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'qtmips_machine') diff --git a/qtmips_machine/cache.cpp b/qtmips_machine/cache.cpp index 152b1c7..ce48579 100644 --- a/qtmips_machine/cache.cpp +++ b/qtmips_machine/cache.cpp @@ -1,3 +1,4 @@ #include "cache.h" using namespace machine; + diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp index 273842d..039f287 100644 --- a/qtmips_machine/core.cpp +++ b/qtmips_machine/core.cpp @@ -177,6 +177,7 @@ void Core::handle_pc(const struct dtDecode &dt) { bool link = false; // TODO implement link + // TODO move this decode to decode stage switch (dt.inst.opcode()) { case 0: // JR (JALR) if (dt.inst.funct() == ALU_OP_JR || dt.inst.funct() == ALU_OP_JALR) { diff --git a/qtmips_machine/machineconfig.h b/qtmips_machine/machineconfig.h index a713a4c..8de7b19 100644 --- a/qtmips_machine/machineconfig.h +++ b/qtmips_machine/machineconfig.h @@ -1,8 +1,8 @@ #ifndef MACHINECONFIG_H #define MACHINECONFIG_H -#include #include +#include namespace machine { -- cgit v1.2.3