aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/core.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-03 12:43:17 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-03 12:43:17 +0100
commit22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f (patch)
tree24d16206784d98f768ff800ab50eb8389d22f295 /qtmips_machine/core.cpp
parent76876d39ba4a9c842786304b8ccf0249fab2999c (diff)
downloadqtmips-22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f.tar.gz
qtmips-22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f.tar.bz2
qtmips-22e2fe92f52e68b8951a2dff1a0de9e05ddf9c7f.zip
Add trace-feth to qtmips_cli
Diffstat (limited to 'qtmips_machine/core.cpp')
-rw-r--r--qtmips_machine/core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp
index 000d76d..276931c 100644
--- a/qtmips_machine/core.cpp
+++ b/qtmips_machine/core.cpp
@@ -25,7 +25,7 @@ struct DecodeMap {
// This is map from opcode to signals.
static const struct DecodeMap dmap[] = {
{ .flags = DM_SUPPORTED | DM_REGD | DM_REGWRITE, NOALU, NOMEM }, // Alu operations (aluop is decoded from function explicitly)
- { .flags = DM_SUPPORTED, NOALU, NOMEM }, // REGIMM (BLTZ, BGEZ, )
+ { .flags = DM_SUPPORTED, NOALU, NOMEM }, // REGIMM (BLTZ, BGEZ)
{ .flags = DM_SUPPORTED, NOALU, NOMEM }, // J
NOPE, // JAL
{ .flags = DM_SUPPORTED, NOALU, NOMEM }, // BEQ
@@ -96,8 +96,8 @@ Core::Core(Registers *regs, MemoryAccess *mem) {
}
struct Core::dtFetch Core::fetch() {
- // TODO signals
Instruction inst(mem->read_word(regs->read_pc()));
+ emit instruction_fetched(inst);
return {
.inst = inst
};