diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-08-24 13:17:40 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-08-24 13:17:40 +0100 |
commit | a1982f90a42b22f2858e7d8497ab7223cd49b65d (patch) | |
tree | d4e99b6cab3fb3833247c95de02befca30765da0 /include/hw/misc | |
parent | 299953b989878d8f9ea38c7ea2d6760d49c0325e (diff) | |
download | qemu-a1982f90a42b22f2858e7d8497ab7223cd49b65d.zip |
hw/misc/mps2-fpgaio: Implement 1Hz and 100Hz counters
The MPS2 FPGAIO block includes some simple free-running counters.
Implement these.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180820141116.9118-2-peter.maydell@linaro.org
Diffstat (limited to 'include/hw/misc')
-rw-r--r-- | include/hw/misc/mps2-fpgaio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/misc/mps2-fpgaio.h b/include/hw/misc/mps2-fpgaio.h index eedf17ebc6..ec057d38c7 100644 --- a/include/hw/misc/mps2-fpgaio.h +++ b/include/hw/misc/mps2-fpgaio.h @@ -38,6 +38,10 @@ typedef struct { uint32_t misc; uint32_t prescale_clk; + + /* These hold the CLOCK_VIRTUAL ns tick when the CLK1HZ/CLK100HZ was zero */ + int64_t clk1hz_tick_offset; + int64_t clk100hz_tick_offset; } MPS2FPGAIO; #endif |