diff options
author | Stafford Horne | 2022-06-15 01:40:16 +0200 |
---|---|---|
committer | Stafford Horne | 2022-09-04 08:02:57 +0200 |
commit | 557e37071d4d4e6de577f5a4dfb012a6a733f319 (patch) | |
tree | 48fa8f0a9eb89b08f59dd094a39b8e354544148e /docs/system/mux-chardev.rst.inc | |
parent | hw/openrisc: Add PCI bus support to virt (diff) | |
download | qemu-557e37071d4d4e6de577f5a4dfb012a6a733f319.tar.gz qemu-557e37071d4d4e6de577f5a4dfb012a6a733f319.tar.xz qemu-557e37071d4d4e6de577f5a4dfb012a6a733f319.zip |
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>
Diffstat (limited to 'docs/system/mux-chardev.rst.inc')
0 files changed, 0 insertions, 0 deletions