hw/ptimer: Support "on the fly" timer mode switch
commit869e92b5c392eb6b2c7b398b878c435442b8e9dd
authorDmitry Osipenko <digetx@gmail.com>
Mon, 6 Jun 2016 15:59:31 +0000 (6 16:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Jun 2016 15:59:31 +0000 (6 16:59 +0100)
tree58e264d91ded1f669a59d96f5a50e5c0dc30b6eb
parent7ef6e3cf8d29022c31d417be12042af33682e2b8
hw/ptimer: Support "on the fly" timer mode switch

Allow switching between periodic <-> oneshot modes while timer is running.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-id: f030be6e28fbd219e1e8d22297aee367bd9af5bb.1464367869.git.digetx@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/ptimer.c