qemu/hw
Román Cárdenas 837148a31a riscv: Fix SiFive E CLINT clock frequency
If you check the manual of SiFive E310 (https://cdn.sparkfun.com/assets/7/f/0/2/7/fe310-g002-manual-v19p05.pdf),
you can see in Figure 1 that the CLINT is connected to the real time clock, which also feeds the AON peripheral (they share the same clock).
In page 43, the docs also say that the timer registers of the CLINT count ticks from the rtcclk.

I am currently playing with bare metal applications both in QEMU and a physical SiFive E310 board and
I confirm that the CLINT clock in the physical board runs at 32.768 kHz.
In QEMU, the same app produces a completely different outcome, as sometimes a new CLINT interrupt is triggered before finishing other tasks.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1978

Signed-off-by: Rom\ufffd\ufffdn C\ufffd\ufffdrdenas <rcardenas.rod@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20231117082840.55705-1-rcardenas.rod@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
(cherry picked from commit a7472560ca5f7a61ef3a46b52118f680de81058c)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-11-29 16:15:22 +03:00
..
9pfs
acpi
adc
alpha
arm hw/arm/boot: Set SCR_EL3.FGTEn when booting kernel 2023-10-03 02:00:54 +03:00
audio hw/audio/es1370: reset current sample counter 2023-10-12 01:10:13 +03:00
avr
block hw/xen: use correct default protocol for xen-block on x86 2023-11-09 16:39:13 +03:00
char hw/char/riscv_htif: Fix the console syscall on big endian hosts 2023-09-21 19:35:19 +03:00
core util/uuid: Add UUID_STR_LEN definition 2023-11-09 16:39:13 +03:00
cpu
cris
cxl hw/cxl: Fix CFMW config memory leak 2023-10-03 02:00:54 +03:00
display ati-vga: Implement fallback for pixman routines 2023-11-09 16:39:13 +03:00
dma
gpio
hppa
hyperv util/uuid: Add UUID_STR_LEN definition 2023-11-09 16:39:13 +03:00
i2c hw/i2c/aspeed: Fix TXBUF transmission start position error 2023-09-21 19:35:19 +03:00
i386 hw/xen: take iothread mutex in xen_evtchn_reset_op() 2023-11-09 16:39:13 +03:00
ide hw/ide/ahci: fix legacy software reset 2023-11-22 14:25:22 +03:00
input lasips2: LASI PS/2 devices are not user-createable 2023-10-21 10:22:02 +03:00
intc hw/intc: Make rtc variable names consistent 2023-09-21 19:35:19 +03:00
ipack
ipmi
isa
loongarch
m68k
mem
microblaze
mips hw/mips: LOONGSON3V depends on UNIMP device 2023-11-19 21:15:06 +03:00
misc misc/led: LED state is set opposite of what is expected 2023-10-31 20:35:06 +03:00
net net: Provide MemReentrancyGuard * to qemu_new_nic() 2023-11-29 15:33:42 +03:00
nios2
nubus
nvme hw/nvme: fix null pointer access in ruh update 2023-08-09 15:32:32 +02:00
nvram
openrisc
pci pci: Fix the update of interrupt disable bit in PCI_COMMAND register 2023-08-11 12:15:24 -04:00
pci-bridge
pci-host hw/pci-host: Allow extended config space access for Designware PCIe host 2023-08-11 12:15:24 -04:00
pcmcia
ppc hw/ppc: Read time only once to perform decrementer write 2023-09-25 23:44:30 +03:00
rdma hw/rdma/vmw/pvrdma_cmd: Use correct struct in query_port() 2023-10-24 09:14:34 +03:00
remote
riscv riscv: Fix SiFive E CLINT clock frequency 2023-11-29 16:15:22 +03:00
rtc
rx
s390x s390x/pci: only limit DMA aperture if vfio DMA limit reported 2023-11-19 21:15:06 +03:00
scsi scsi-disk: ensure that FORMAT UNIT commands are terminated 2023-10-03 18:25:13 +03:00
sd hw/sd/sdhci: Block Size Register bits [14:12] is lost 2023-10-24 09:12:45 +03:00
sensor
sh4
smbios
sparc
sparc64
ssi
timer
tpm
tricore
usb net: Provide MemReentrancyGuard * to qemu_new_nic() 2023-11-29 15:33:42 +03:00
vfio vfio/pci: Fix buffer overrun when writing the VF token 2023-11-09 16:39:13 +03:00
virtio virtio: Drop out of coroutine context in virtio_load() 2023-09-21 19:35:19 +03:00
watchdog
xen
xenpv
xtensa
Kconfig
meson.build