aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-12 20:41:35 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-12 20:41:35 +0100
commit7ab428e3e75854749a39128a8bfcbc47b7844f87 (patch)
treebd8af0cb1cd73df9d02870683ad921e5a4faf41f /qtmips_machine
parent44ba6f6121977e938432cfa5db340f5457ac344a (diff)
downloadqtmips-7ab428e3e75854749a39128a8bfcbc47b7844f87.tar.gz
qtmips-7ab428e3e75854749a39128a8bfcbc47b7844f87.tar.bz2
qtmips-7ab428e3e75854749a39128a8bfcbc47b7844f87.zip
Tiny cleanup
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/alu.h2
-rw-r--r--qtmips_machine/core.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/qtmips_machine/alu.h b/qtmips_machine/alu.h
index 95042f4..4d09013 100644
--- a/qtmips_machine/alu.h
+++ b/qtmips_machine/alu.h
@@ -16,7 +16,7 @@ enum AluOp : std::uint8_t {
ALU_OP_SRAV,
ALU_OP_JR,
ALU_OP_JALR,
- ALU_OP_MOVZ = 10,
+ ALU_OP_MOVZ,
ALU_OP_MOVN,
ALU_OP_MFHI = 16,
ALU_OP_MTHI,
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h
index 6366088..e583235 100644
--- a/qtmips_machine/core.h
+++ b/qtmips_machine/core.h
@@ -39,13 +39,11 @@ protected:
bool regwrite;
std::uint8_t rwrite; // Writeback register (multiplexed between rt and rd according to regd)
std::uint32_t alu_val; // Result of ALU execution
- // TODO
};
struct dtMemory {
bool regwrite;
std::uint8_t rwrite;
std::uint32_t alu_val;
- // TODO
};
struct dtFetch fetch();