sparc32: improve timer implementation
commit68fb89a2c07b6ad1e69a9a45f664d533f2662ec6
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 3 Apr 2010 06:17:35 +0000 (3 06:17 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 3 Apr 2010 06:17:35 +0000 (3 06:17 +0000)
treefda0fe64363a15cf360a440b52d46605b0bf4e26
parent25da2f343cba4f854f19b2b52817f2e5c851ee17
sparc32: improve timer implementation

Timer with zero period (free-run) will never match.

Timer counting starts with tick value of 0x200, not from 0,
so the period must calculated from one tick less than the limit.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/slavio_timer.c