diff options
| author | BALATON Zoltan <balaton@eik.bme.hu> | 2025-05-23 17:02:11 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-10 12:59:09 +0200 |
| commit | ea585b1022f7c1ac6e465aa1fe869de4c20ca943 (patch) | |
| tree | 7c6f3bc022e28f5082be5081d29d52d5a6df8654 /hw/ppc/e500plat.c | |
| parent | 8cab2354a2ff77c0977ac337a93ad6f645e5086a (diff) | |
| download | focaccia-qemu-ea585b1022f7c1ac6e465aa1fe869de4c20ca943.tar.gz focaccia-qemu-ea585b1022f7c1ac6e465aa1fe869de4c20ca943.zip | |
hw/ppc/e500: Move clock and TB frequency to machine class
Different machines have different frequencies so make this configurable in machine class instead of using a hard coded constant. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Acked-by: Bernhard Beschow <shentey@gmail.com> Message-ID: <431166f96ff12ff3dbc670d40544974415f11305.1748012109.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/ppc/e500plat.c')
| -rw-r--r-- | hw/ppc/e500plat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/e500plat.c b/hw/ppc/e500plat.c index 775b9d8da0..4f1d659e72 100644 --- a/hw/ppc/e500plat.c +++ b/hw/ppc/e500plat.c @@ -93,6 +93,8 @@ static void e500plat_machine_class_init(ObjectClass *oc, const void *data) pmc->pci_mmio_base = 0xC00000000ULL; pmc->pci_mmio_bus_base = 0xE0000000ULL; pmc->spin_base = 0xFEF000000ULL; + pmc->clock_freq = PLATFORM_CLK_FREQ_HZ; + pmc->tb_freq = PLATFORM_CLK_FREQ_HZ; mc->desc = "generic paravirt e500 platform"; mc->init = e500plat_init; |