Revert "hw/ptimer: Perform counter wrap around if timer already expired"
authorDmitry Osipenko <digetx@gmail.com>
Thu, 14 Jul 2016 15:51:36 +0000 (16:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Jul 2016 15:51:36 +0000 (16:51 +0100)
commit56215da394e9b784d425bc27cb826baf16c18b0d
treee728adde9627a148ed4ffee5d1e1202348d17ce4
parentf58b39d2d5b6dea1a757e1dc7d67a44eac1c4f9c
Revert "hw/ptimer: Perform counter wrap around if timer already expired"

Software should see timer counter wraparound only after IRQ being triggered.
This fixes regression introduced by the commit 5a50307 ("hw/ptimer: Perform
counter wrap around if timer already expired"), resulting in monotonic timer
jumping backwards on SPARC emulated machine running NetBSD guest OS, as
reported by Mark Cave-Ayland.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Message-id: 20160708132206.2080-1-digetx@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/ptimer.c