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); } };