aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/rx/trace.c')
-rw-r--r--sim/rx/trace.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sim/rx/trace.c b/sim/rx/trace.c
index cab05ff..add37ea 100644
--- a/sim/rx/trace.c
+++ b/sim/rx/trace.c
@@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "config.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
@@ -321,7 +322,13 @@ sim_disasm_one (void)
}
opbuf[0] = 0;
- printf ("\033[33m%06x: ", mypc);
+#ifdef CYCLE_ACCURATE
+ printf ("\033[33m %04u %06x: ", (int)(regs.cycle_count % 10000), mypc);
+#else
+ printf ("\033[33m %06x: ", mypc);
+
+#endif
+
max = print_insn_rx (mypc, & info);
for (i = 0; i < max; i++)