diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index 62222a1ab3b65f6e70b72fd463d086058bcbb6b3..06661d8e756a21d391d4102756a76d359ac3202a 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -8,6 +8,7 @@ */ #include "hw.h" +#include "qemu-timer.h" #include "primecell.h" #include "sysemu.h" @@ -70,8 +71,7 @@ static uint32_t arm_sysctl_read(void *opaque, target_phys_addr_t offset) case 0x58: /* BOOTCS */ return 0; case 0x5c: /* 24MHz */ - /* ??? not implemented. */ - return 0; + return muldiv64(qemu_get_clock(vm_clock), 24000000, ticks_per_sec); case 0x60: /* MISC */ return 0; case 0x84: /* PROCID0 */