[platform][qemu-arm] switch to using the virtual timer interrupt

On mac qemu, trying to use the physical timer does not seem to work, but
really the virtual timer is what you should be using most of the time,
especially when running under emulation.
This commit is contained in:
Travis Geiselbrecht
2024-08-11 11:54:54 -07:00
parent baaa474628
commit 80e36e4925
2 changed files with 4 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ void platform_early_init(void) {
/* initialize the interrupt controller */
arm_gic_init();
arm_generic_timer_init(ARM_GENERIC_TIMER_PHYSICAL_INT, 0);
arm_generic_timer_init(ARM_GENERIC_TIMER_VIRTUAL_INT, 0);
struct pl011_config uart_config = {
.base = UART_BASE,

View File

@@ -41,9 +41,10 @@ GLOBAL_DEFINES += \
MEMBASE=$(MEMBASE) \
MEMSIZE=$(MEMSIZE) \
PLATFORM_SUPPORTS_PANIC_SHELL=1 \
CONSOLE_HAS_INPUT_BUFFER=1
CONSOLE_HAS_INPUT_BUFFER=1 \
TIMER_ARM_GENERIC_SELECTED=CNTV
GLOBAL_DEFINES += MMU_WITH_TRAMPOLINE=1 \
GLOBAL_DEFINES += MMU_WITH_TRAMPOLINE=1
LINKER_SCRIPT += \
$(BUILDDIR)/system-onesegment.ld