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; \