From 540eb5ba7321a9aaa3973cd8f9545f8ab96b5dae Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Sat, 14 Dec 2024 10:25:38 +0100 Subject: [PATCH] cpu/qemu: Enable IDT_IN_EVERY_STAGE Enable IDT_IN_EVERY_STAGE in qemu to easily debug HW breakpoints. TEST: Can use breakpoints in pre RAM stages to debug invalid memory accesses on QEMU. Change-Id: If4a386d1adc788ff717899027881590b7c8b3369 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/85593 Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- src/cpu/qemu-x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpu/qemu-x86/Kconfig b/src/cpu/qemu-x86/Kconfig index e1469d6f1e..f564d70066 100644 --- a/src/cpu/qemu-x86/Kconfig +++ b/src/cpu/qemu-x86/Kconfig @@ -8,6 +8,7 @@ config CPU_QEMU_X86 select TSC_MONOTONIC_TIMER select UNKNOWN_TSC_RATE select NEED_SMALL_2MB_PAGE_TABLES # QEMU doesn't support 1GB pages + select IDT_IN_EVERY_STAGE if CPU_QEMU_X86