From 10d85d4f517d3d4876b2e8987199e702b4231687 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 16 May 2024 02:14:52 +0200 Subject: [PATCH] CPUThread: remove m_class member due to bad ppu cache design --- rpcs3/Emu/CPU/CPUThread.cpp | 1 - rpcs3/Emu/CPU/CPUThread.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/rpcs3/Emu/CPU/CPUThread.cpp b/rpcs3/Emu/CPU/CPUThread.cpp index 1f9e50b208..1ecd4bce82 100644 --- a/rpcs3/Emu/CPU/CPUThread.cpp +++ b/rpcs3/Emu/CPU/CPUThread.cpp @@ -676,7 +676,6 @@ cpu_thread::~cpu_thread() cpu_thread::cpu_thread(u32 id) : id(id) - , m_class(get_thread_class(id_type())) { while (Emu.GetStatus() == system_state::paused) { diff --git a/rpcs3/Emu/CPU/CPUThread.h b/rpcs3/Emu/CPU/CPUThread.h index 1bce256c9e..89c6f21c30 100644 --- a/rpcs3/Emu/CPU/CPUThread.h +++ b/rpcs3/Emu/CPU/CPUThread.h @@ -120,7 +120,7 @@ public: thread_class get_class() const { - return m_class; + return get_thread_class(id_type()); } template T> @@ -301,7 +301,6 @@ public: private: static thread_local cpu_thread* g_tls_this_thread; - const thread_class m_class; }; template T = cpu_thread>