From 3d16006e6b490ab5c29e05a82226d0f5739b773e Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 13 Feb 2019 23:52:28 +0100 Subject: Ensure that single step does not run chunk of instructions instead of one. Signed-off-by: Pavel Pisa --- qtmips_machine/qtmipsmachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_machine') diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index c7a00aa..7a64429 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -190,7 +190,7 @@ void QtMipsMachine::step_internal(bool skip_break) { QTime start_time = QTime::currentTime(); do { cr->step(skip_break); - } while(time_chunk != 0 && stat == ST_BUSY && + } while(time_chunk != 0 && stat == ST_BUSY && skip_break == false && start_time.msecsTo(QTime::currentTime()) < (int)time_chunk); } catch (QtMipsException &e) { run_t->stop(); -- cgit v1.2.3