aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-03 11:52:53 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-03 11:52:53 +0100
commit55e1bc746a45118e14554c957b4ee4663039d9af (patch)
treeaf416cb8dd60f47f47b6d9b943a53fe069543cdb /qtmips_gui
parent53c75d278a958e40b9c0b0ca3b04cfb11f356827 (diff)
downloadqtmips-55e1bc746a45118e14554c957b4ee4663039d9af.tar.gz
qtmips-55e1bc746a45118e14554c957b4ee4663039d9af.tar.bz2
qtmips-55e1bc746a45118e14554c957b4ee4663039d9af.zip
Implement BREAK instruction to stop continuous execution.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index 4fb9cbf..8c83f6b 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -113,6 +113,8 @@ void MainWindow::create_core(const machine::MachineConfig &config) {
connect(corescene, SIGNAL(request_jump_to_program_counter(std::uint32_t)), program, SLOT(jump_to_pc(std::uint32_t)));
connect(corescene, SIGNAL(request_cache_program()), this, SLOT(show_cache_program()));
connect(corescene, SIGNAL(request_cache_data()), this, SLOT(show_cache_data()));
+ // Connect signal from break to machine pause
+ connect(machine->core(), SIGNAL(memory_break_reached()), machine, SLOT(pause()));
// Setup docks
registers->setup(machine);