aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/core.cpp2
-rw-r--r--qtmips_machine/core.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp
index 9ca7b9d..fd6c6f4 100644
--- a/qtmips_machine/core.cpp
+++ b/qtmips_machine/core.cpp
@@ -171,6 +171,8 @@ void Core::writeback(const struct dtMemory &dt) {
}
void Core::handle_pc(const struct dtDecode &dt) {
+ emit instruction_program_counter(dt.inst);
+
bool branch = false;
bool link = false;
// TODO implement link
diff --git a/qtmips_machine/core.h b/qtmips_machine/core.h
index 3ff6a98..a0bc2a2 100644
--- a/qtmips_machine/core.h
+++ b/qtmips_machine/core.h
@@ -26,6 +26,7 @@ signals:
void instruction_executed(const machine::Instruction &inst);
void instruction_memory(const machine::Instruction &inst);
void instruction_writeback(const machine::Instruction &inst);
+ void instruction_program_counter(const machine::Instruction &inst);
protected:
Registers *regs;