summaryrefslogtreecommitdiff
path: root/sim/m68hc11/dv-m68hc11spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m68hc11/dv-m68hc11spi.c')
-rw-r--r--sim/m68hc11/dv-m68hc11spi.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c
index 04ac825a127..abde515131b 100644
--- a/sim/m68hc11/dv-m68hc11spi.c
+++ b/sim/m68hc11/dv-m68hc11spi.c
@@ -355,8 +355,12 @@ m68hc11spi_info (struct hw *me)
sim_io_printf (sd, " SPI has %d bits to send\n",
controller->tx_bit + 1);
t = hw_event_remain_time (me, controller->spi_event);
- sim_io_printf (sd, " SPI operation finished in %ld cycles\n",
- (long) t);
+ sim_io_printf (sd, " SPI current bit-cycle finished in %s\n",
+ cycle_to_string (cpu, t));
+
+ t += (controller->tx_bit + 1) * 2 * controller->clock;
+ sim_io_printf (sd, " SPI operation finished in %s\n",
+ cycle_to_string (cpu, t));
}
}