qemu-e2k/hw/openrisc
Stafford Horne 557e37071d hw/openrisc: Initialize timer time at startup
The last_clk time was initialized at zero, this means when we calculate
the first delta we will calculate 0 vs current time which could cause
unnecessary hops.

This patch moves timer initialization to the cpu reset.  There are two
resets registered here:

 1. Per cpu timer mask (ttmr) reset.
 2. Global cpu timer (last_clk and ttcr) reset, attached to the first
    cpu only.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
2022-09-04 07:02:57 +01:00
..
boot.c hw/openrisc: Split re-usable boot time apis out to boot.c 2022-09-04 07:02:56 +01:00
cputimer.c hw/openrisc: Initialize timer time at startup 2022-09-04 07:02:57 +01:00
Kconfig hw/openrisc: Add PCI bus support to virt 2022-09-04 07:02:57 +01:00
meson.build hw/openrisc: Add the OpenRISC virtual machine 2022-09-04 07:02:57 +01:00
openrisc_sim.c hw/openrisc: Split re-usable boot time apis out to boot.c 2022-09-04 07:02:56 +01:00
virt.c hw/openrisc: Add PCI bus support to virt 2022-09-04 07:02:57 +01:00