Re: [RFC PATCH-for-6.1 v2 3/6] target/mips/cp0_timer: Add ns_to_count() helper

2021-04-09 Thread Richard Henderson
On 4/9/21 2:36 AM, Philippe Mathieu-Daudé wrote: Factor ns_to_count() out to simplify a bit. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/cp0_timer.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) Reviewed-by: Richard Henderson r~

[RFC PATCH-for-6.1 v2 3/6] target/mips/cp0_timer: Add ns_to_count() helper

2021-04-09 Thread Philippe Mathieu-Daudé
Factor ns_to_count() out to simplify a bit. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/cp0_timer.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/target/mips/cp0_timer.c b/target/mips/cp0_timer.c index 70de95d338f..73355b44b15 100644 --- a/targ