mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/timer/mss-timerc: Switch to transaction-based ptimer API
Switch the mss-timer 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> Message-id: 20191008171740.9679-20-peter.maydell@linaro.org
This commit is contained in:
parent
1b914994ea
commit
00ee4b0f48
2 changed files with 8 additions and 4 deletions
|
@ -46,7 +46,6 @@
|
|||
#define R_TIM1_MAX 6
|
||||
|
||||
struct Msf2Timer {
|
||||
QEMUBH *bh;
|
||||
ptimer_state *ptimer;
|
||||
|
||||
uint32_t regs[R_TIM1_MAX];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue