From 35cdfc5ef734d6f6830ea9ce43539429998a7fa6 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 23 Feb 2024 12:12:10 +0900 Subject: [PATCH] CPU: Move PGXP registers earlier in struct --- src/core/cpu_core.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/cpu_core.h b/src/core/cpu_core.h index f93ca9fd5..737317dba 100644 --- a/src/core/cpu_core.h +++ b/src/core/cpu_core.h @@ -102,15 +102,15 @@ struct State void* fastmem_base = nullptr; void** memory_handlers = nullptr; + PGXP_value pgxp_gpr[static_cast(Reg::count)] = {}; + PGXP_value pgxp_cop0[32] = {}; + PGXP_value pgxp_gte[64] = {}; + std::array icache_tags = {}; std::array icache_data = {}; std::array scratchpad = {}; - PGXP_value pgxp_gpr[static_cast(Reg::count)]; - PGXP_value pgxp_cop0[32]; - PGXP_value pgxp_gte[64]; - static constexpr u32 GPRRegisterOffset(u32 index) { return offsetof(State, regs.r) + (sizeof(u32) * index); } static constexpr u32 GTERegisterOffset(u32 index) { return offsetof(State, gte_regs.r32) + (sizeof(u32) * index); } };