Commit e9f4308d84 for qemu.org

commit e9f4308d84d84bff86d98e9bd35e7ed883f41c69
Author: Sunil V L <sunilvl@oss.qualcomm.com>
Date:   Wed Nov 11 15:46:09 2026 +0530

    hw/riscv/server_platform_ref: Fix mtimer frequency

    The RISC-V server reference platform requires a 1 GHz timer frequency.
    Although the timer frequency is advertised as 1 GHz in the device tree,
    the mtimer device is still created with a 10 MHz frequency. This mismatch
    causes the OS to boot very slowly.

    Use the correct 1 GHz frequency when creating the mtimer device.

    Fixes: c2fa4320803b ("hw/riscv: server platform reference machine")
    Signed-off-by: Sunil V L <sunilvl@oss.qualcomm.com>
    Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
    Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
    Message-ID: <20261111101609.1183263-1-sunilvl@oss.qualcomm.com>
    Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

diff --git a/hw/riscv/server_platform_ref.c b/hw/riscv/server_platform_ref.c
index 3526c80d79..22b3149ee8 100644
--- a/hw/riscv/server_platform_ref.c
+++ b/hw/riscv/server_platform_ref.c
@@ -561,7 +561,7 @@ static void rvserver_ref_machine_init(MachineState *machine)
                 base_hartid, hart_count,
                 RISCV_ACLINT_DEFAULT_MTIMECMP,
                 RISCV_ACLINT_DEFAULT_MTIME,
-                RISCV_ACLINT_DEFAULT_TIMEBASE_FREQ, true);
+                RVSERVER_ACLINT_TIMEBASE_FREQ, true);

         /* Per-socket interrupt controller */
         s->irqchip[i] = riscv_create_aia(system_memory, true, s->aia_guests,