Re: [RFC PATCH-for-6.1 v2 2/6] target/mips/cpu: Update CP0 clock when CPU clock is propagated

2021-04-09 Thread Richard Henderson
On 4/9/21 2:36 AM, Philippe Mathieu-Daudé wrote: Setting the CP0 clock simply on CPU init is incorrect. First because the clock can not be yet propagated. Second because we aimed to support dynamic frequencies in commit a0713e85bfa, so the CPU frequency can be changed*after* init time. The corr

[RFC PATCH-for-6.1 v2 2/6] target/mips/cpu: Update CP0 clock when CPU clock is propagated

2021-04-09 Thread Philippe Mathieu-Daudé
Setting the CP0 clock simply on CPU init is incorrect. First because the clock can not be yet propagated. Second because we aimed to support dynamic frequencies in commit a0713e85bfa, so the CPU frequency can be changed *after* init time. The correct way is to register a ClockCallback, which will