From d803c9090308ac98431fcd19c73d5755817df164 Mon Sep 17 00:00:00 2001 From: SashegDev Date: Fri, 11 Sep 2026 06:06:59 +0000 Subject: [PATCH] saimaa: BKPT in exception vectors for fault capture --- qemu/saimaa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qemu/saimaa.c b/qemu/saimaa.c index 2e51525..95da034 100644 --- a/qemu/saimaa.c +++ b/qemu/saimaa.c @@ -113,6 +113,11 @@ static uint64_t saimaa_vec_read(void *opaque, hwaddr off, unsigned size) (unsigned)off, (unsigned long)pc - (th ? 4 : 8)); saimaa_vec_n++; } + /* BKPT at exception vectors: data/prefetch abort fetch traps to gdb */ + if (off == 0x8 || off == 0xC || off == 0x10 || off == 0x18 || + off == 0x1C) { + return 0xE1200070; + } return 0; }