hw/ppc: Introduce functions for conversion between timebase and nanoseconds
commit7798f5c576d898e7e10c4a2518f3f16411dedeb9
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:46 +0000 (8 14:19 +1000)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (6 11:19 +0200)
tree6ba7cc4cd5390e45a6775ccad6461702c0508960
parenteaf832fc3b058ab62e9f2b677f1cba012eb728c2
hw/ppc: Introduce functions for conversion between timebase and nanoseconds

These calculations are repeated several times, and they will become
a little more complicated with subsequent changes.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/ppc.c