From 4dc74515e8475f365a3497ff9fc57c7fb881d250 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 27 Oct 2022 03:56:26 +0200 Subject: [PATCH] Returned back to the PCem GPF handler. --- src/codegen/codegen_x86-64.c | 2 +- src/codegen/codegen_x86-64.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/codegen_x86-64.c b/src/codegen/codegen_x86-64.c index 4289235fe..4ba66d76b 100644 --- a/src/codegen/codegen_x86-64.c +++ b/src/codegen/codegen_x86-64.c @@ -281,7 +281,7 @@ void codegen_block_start_recompile(codeblock_t *block) block->status = cpu_cur_status; block_pos = BLOCK_GPF_OFFSET; -#ifdef OLD_GPF +#ifndef NEW_GPF #if _WIN64 addbyte(0x48); /*XOR RCX, RCX*/ addbyte(0x31); diff --git a/src/codegen/codegen_x86-64.h b/src/codegen/codegen_x86-64.h index 1ef81ff89..034b17355 100644 --- a/src/codegen/codegen_x86-64.h +++ b/src/codegen/codegen_x86-64.h @@ -8,7 +8,7 @@ #define HASH(l) ((l) & 0x1ffff) #define BLOCK_EXIT_OFFSET 0x7e0 -#ifdef OLD_GPF +#ifndef NEW_GPF #define BLOCK_GPF_OFFSET (BLOCK_EXIT_OFFSET - 20) #else #define BLOCK_GPF_OFFSET (BLOCK_EXIT_OFFSET - 12)