[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] hw/core/ptimer: fix timer zero period condition
From: |
Peter Maydell |
Subject: |
Re: [PATCH] hw/core/ptimer: fix timer zero period condition |
Date: |
Thu, 8 Aug 2024 16:04:29 +0100 |
On Wed, 7 Aug 2024 at 10:13, Jianzhou Yue <JianZhou.Yue@verisilicon.com> wrote:
>
> The real period is zero when both period and period_frac are zero.
> Check the method ptimer_set_freq, if freq is larger than 1000 MHz,
> the period is zero, but the period_frac is not, in this case, the
> ptimer will work but the current code incorrectly recognizes that
> the ptimer is disabled.
>
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2306
> Signed-off-by: JianZhou Yue <JianZhou.Yue@verisilicon.com>
> ---
Applied to target-arm.next, thanks.
-- PMM