From cb28daba98c6cdf9e3523755eba39717e4e26186 Mon Sep 17 00:00:00 2001 From: cold-brewed Date: Wed, 9 Aug 2023 07:43:48 -0400 Subject: [PATCH] Match the destination register type on apple silicon. Clears up a clang warning. --- src/cpu/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h index ecfb438da..6c01f2469 100644 --- a/src/cpu/cpu.h +++ b/src/cpu/cpu.h @@ -394,8 +394,13 @@ typedef struct { MMX_REG MM[8]; #ifdef USE_NEW_DYNAREC +# if defined(__APPLE__) && defined(__aarch64__) + uint64_t old_fp_control; + uint64_t new_fp_control; +# else uint32_t old_fp_control; uint32_t new_fp_control; +# endif # if defined i386 || defined __i386 || defined __i386__ || defined _X86_ || defined _M_IX86 uint16_t old_fp_control2; uint16_t new_fp_control2;