Fix sim_debug to display actual instruction count.
This commit is contained in:
parent
14a88e4fd4
commit
31bf337ded
1 changed files with 2 additions and 2 deletions
4
scp.c
4
scp.c
|
@ -5126,7 +5126,7 @@ static void sim_debug_prefix (uint32 dbits, DEVICE* dptr)
|
||||||
{
|
{
|
||||||
if (!debug_unterm) {
|
if (!debug_unterm) {
|
||||||
char* debug_type = get_dbg_verb (dbits, dptr);
|
char* debug_type = get_dbg_verb (dbits, dptr);
|
||||||
fprintf(sim_deb, debug_fmt, sim_time, dptr->name, debug_type);
|
fprintf(sim_deb, debug_fmt, sim_gtime(), dptr->name, debug_type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5233,7 +5233,7 @@ if (sim_deb && (dptr->dctrl & dbits)) {
|
||||||
if (debug_unterm)
|
if (debug_unterm)
|
||||||
fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]);
|
fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]);
|
||||||
else /* print prefix when required */
|
else /* print prefix when required */
|
||||||
fprintf (sim_deb, "DBG(%.0f)> %s %s: %.*s\r\n", sim_time, dptr->name, debug_type, i-j, &buf[j]);
|
fprintf (sim_deb, "DBG(%.0f)> %s %s: %.*s\r\n", sim_gtime(), dptr->name, debug_type, i-j, &buf[j]);
|
||||||
debug_unterm = 0;
|
debug_unterm = 0;
|
||||||
}
|
}
|
||||||
j = i + 1;
|
j = i + 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue