|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 07/15] hw/timer/arm_timer: Extract arm_timer_reset() |
Date: | Tue, 4 Jul 2023 12:01:46 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
On 8/6/23 16:46, Peter Maydell wrote:
On Wed, 31 May 2023 at 21:36, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:Extract arm_timer_reset() before converting this model to QOM/QDev in few commits. This will become our DeviceReset handler. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/timer/arm_timer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
+static void arm_timer_reset(ArmTimerState *s) +{ + s->control = TIMER_CTRL_IE; +}Reset also should zero s->limit and s->int_level. (in arm_timer_init() this was implicit in the g_new0()).)
Oops I missed that, thanks!
[Prev in Thread] | Current Thread | [Next in Thread] |