From 22ef9b5e7ba416ce368fa1a2960dfb30ad8e3088 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Mon, 13 Jan 2025 16:29:23 +0100 Subject: [PATCH] Fixed natmem_offset references --- src/osdep/sigsegv_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdep/sigsegv_handler.cpp b/src/osdep/sigsegv_handler.cpp index 9191cc30e..c313529e4 100644 --- a/src/osdep/sigsegv_handler.cpp +++ b/src/osdep/sigsegv_handler.cpp @@ -164,7 +164,7 @@ static int handle_exception(mcontext_t sigcont, long fault_addr) } // Get Amiga address of illegal memory address - long amiga_addr = long(fault_addr) - long(natmem_offset); + long amiga_addr = long(fault_addr) - long(regs.natmem_offset); // Check for stupid RAM detection of kickstart if (a3000lmem_bank.allocated_size > 0 && amiga_addr >= a3000lmem_bank.start - 0x00100000 && amiga_addr < a3000lmem_bank.start - 0x00100000 + 8) { @@ -607,7 +607,7 @@ static int handle_exception(unsigned long* pregs, long fault_addr) } // Get Amiga address of illegal memory address - auto amiga_addr = (long)fault_addr - (long)natmem_offset; + auto amiga_addr = (long)fault_addr - (long)regs.natmem_offset; // Check for stupid RAM detection of kickstart if (a3000lmem_bank.allocated_size > 0 && amiga_addr >= a3000lmem_bank.start - 0x00100000 && amiga_addr < a3000lmem_bank.start - 0x00100000 + 8) {