From 55e1bc746a45118e14554c957b4ee4663039d9af Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sun, 3 Feb 2019 11:52:53 +0100 Subject: Implement BREAK instruction to stop continuous execution. Signed-off-by: Pavel Pisa --- qtmips_gui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qtmips_gui/mainwindow.cpp') 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); -- cgit v1.2.3