aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/core.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-21 20:46:16 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-21 20:46:16 +0100
commitcdc1f889a5d302c9ad83846e1b686523f26ed423 (patch)
tree187c6062f5f777f210a1e04abb128d50a46f1ada /qtmips_machine/core.cpp
parentb0a3e568a9e10ee9d99e8679b2ddd697705e756c (diff)
downloadqtmips-cdc1f889a5d302c9ad83846e1b686523f26ed423.tar.gz
qtmips-cdc1f889a5d302c9ad83846e1b686523f26ed423.tar.bz2
qtmips-cdc1f889a5d302c9ad83846e1b686523f26ed423.zip
Add instruction view to single core
Diffstat (limited to 'qtmips_machine/core.cpp')
-rw-r--r--qtmips_machine/core.cpp2
1 files changed, 2 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