From c33abecf8b51d1f71f2c916b2fb107f38ae482f8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 30 Aug 2016 15:51:45 -0700 Subject: [PATCH] SDS, Sigma: Make sure breakpoint's don't advance sim_time --- SDS/sds_cpu.c | 1 + sigma/sigma_cpu.c | 1 + 2 files changed, 2 insertions(+) diff --git a/SDS/sds_cpu.c b/SDS/sds_cpu.c index 4316c3a4..70219878 100644 --- a/SDS/sds_cpu.c +++ b/SDS/sds_cpu.c @@ -452,6 +452,7 @@ while (reason == 0) { /* loop until halted */ reason = STOP_UBKPT; /* stop simulation */ break; } + sim_interval++; /* don't count non-executed instruction */ break; } } diff --git a/sigma/sigma_cpu.c b/sigma/sigma_cpu.c index 974d3bf8..6064e924 100644 --- a/sigma/sigma_cpu.c +++ b/sigma/sigma_cpu.c @@ -472,6 +472,7 @@ while (reason == 0) { /* loop until stop */ if (sim_brk_summ && sim_brk_test (PC, SWMASK ('E'))) { /* breakpoint? */ reason = STOP_IBKPT; /* stop simulation */ + sim_interval++; /* don't count non-executed instruction */ break; } if (PSW_QRX9 && (PC & PSW1_XA)) /* S9 real ext && ext? */