From bacfecfead014aa82dfb2b3566f1d5e43b87adef Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Fri, 19 Jun 2020 13:58:53 +0200 Subject: [PATCH] fadec: Allow 64-bit decoding on 32-bit platforms --- decode.c | 4 ---- fadec.h | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/decode.c b/decode.c index 437aca4..9f9908a 100644 --- a/decode.c +++ b/decode.c @@ -6,10 +6,6 @@ #include -#if defined(ARCH_X86_64) && __SIZEOF_POINTER__ < 8 -#error "Decoding x86-64 requires a 64-bit architecture" -#endif - #define LIKELY(x) __builtin_expect((x), 1) #define UNLIKELY(x) __builtin_expect((x), 0) diff --git a/fadec.h b/fadec.h index 58c533e..b602793 100644 --- a/fadec.h +++ b/fadec.h @@ -97,10 +97,10 @@ typedef struct { FdOp operands[4]; - intptr_t disp; - intptr_t imm; + int64_t disp; + int64_t imm; - uintptr_t address; + uint64_t address; } FdInstr; typedef enum {