aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-13 23:52:28 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-13 23:52:28 +0100
commit3d16006e6b490ab5c29e05a82226d0f5739b773e (patch)
treebbe103ba8e4cdb211d8598f1c51b1a1cbbd5291d /qtmips_machine
parent99364fff03268f3a5b9257430369003c7d91cbfb (diff)
downloadqtmips-3d16006e6b490ab5c29e05a82226d0f5739b773e.tar.gz
qtmips-3d16006e6b490ab5c29e05a82226d0f5739b773e.tar.bz2
qtmips-3d16006e6b490ab5c29e05a82226d0f5739b773e.zip
Ensure that single step does not run chunk of instructions instead of one.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/qtmipsmachine.cpp2
1 files changed, 1 insertions, 1 deletions
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();