aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-03-06 22:08:53 +0100
committerKarel Kočí <cynerd@email.cz>2018-03-06 22:08:53 +0100
commite6c3d5bdc7a4763bd6816d52b0d1b42a7e4b08f1 (patch)
tree643443e929f6e9e66b444cb1b4f6634fefdbec46 /qtmips_machine
parente869534670e1e1cb3b68c1e60205c36dff2dcb16 (diff)
downloadqtmips-simple-memory-view.tar.gz
qtmips-simple-memory-view.tar.bz2
qtmips-simple-memory-view.zip
WIP: simplify memory viewsimple-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.
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/cache.cpp1
-rw-r--r--qtmips_machine/core.cpp1
-rw-r--r--qtmips_machine/machineconfig.h2
3 files changed, 3 insertions, 1 deletions
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 <QString>
#include <QSettings>
+#include <QString>
namespace machine {