From 505b5e64682843ce4c1a7741f79ace69177d7505 Mon Sep 17 00:00:00 2001
From: dingusdev <52434309+dingusdev@users.noreply.github.com>
Date: Sun, 24 Mar 2024 15:35:11 -0700
Subject: [PATCH] Slight tweak to PPC Macros
---
cpu/ppc/ppcfpopcodes.cpp | 4 ----
cpu/ppc/ppcmacros.h | 2 ++
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/cpu/ppc/ppcfpopcodes.cpp b/cpu/ppc/ppcfpopcodes.cpp
index 4a221a1..72faae3 100644
--- a/cpu/ppc/ppcfpopcodes.cpp
+++ b/cpu/ppc/ppcfpopcodes.cpp
@@ -30,12 +30,8 @@ along with this program. If not, see .
#include
#include
-// Used for FP calcs
-
// Storage and register retrieval functions for the floating point functions.
-#define GET_FPR(reg) ppc_state.fpr[(reg)].dbl64_r
-
double fp_return_double(uint32_t reg) {
return ppc_state.fpr[reg].dbl64_r;
}
diff --git a/cpu/ppc/ppcmacros.h b/cpu/ppc/ppcmacros.h
index 1630f95..4f40f95 100644
--- a/cpu/ppc/ppcmacros.h
+++ b/cpu/ppc/ppcmacros.h
@@ -112,6 +112,8 @@ along with this program. If not, see .
int reg_d = (opcode >> 21) & 31; \
int reg_b = (opcode >> 11) & 31;
+#define GET_FPR(reg) ppc_state.fpr[(reg)].dbl64_r
+
#define ppc_grab_regsfpdiab(opcode) \
int reg_d = (opcode >> 21) & 31; \
int reg_a = (opcode >> 16) & 31; \