hw/m68k/mcf5208.c: Switch to transaction-based ptimer API
commit81b2d96b8a19bb6fe3aa93e8185f5527df26fe2a
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Oct 2019 15:50:36 +0000 (22 16:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Oct 2019 16:44:00 +0000 (22 17:44 +0100)
tree512da7118ba1059766d33a661f5b09b3eabacbad
parent2cb42c930b0e4d60164f837ab70253fb43813e93
hw/m68k/mcf5208.c: Switch to transaction-based ptimer API

Switch the mcf5208 code away from bottom-half based ptimers to
the new transaction-based ptimer API.  This just requires adding
begin/commit calls around the various places that modify the ptimer
state, and using the new ptimer_init() function to create the timer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Thomas Huth <huth@tuxfamily.org>
Message-id: 20191017132905.5604-9-peter.maydell@linaro.org
hw/m68k/mcf5208.c