CPUThread: remove m_class member due to bad ppu cache design

This commit is contained in:
Megamouse 2024-05-16 02:14:52 +02:00
parent 2637dc35a7
commit 10d85d4f51
2 changed files with 1 additions and 3 deletions

View file

@ -676,7 +676,6 @@ cpu_thread::~cpu_thread()
cpu_thread::cpu_thread(u32 id) cpu_thread::cpu_thread(u32 id)
: id(id) : id(id)
, m_class(get_thread_class(id_type()))
{ {
while (Emu.GetStatus() == system_state::paused) while (Emu.GetStatus() == system_state::paused)
{ {

View file

@ -120,7 +120,7 @@ public:
thread_class get_class() const thread_class get_class() const
{ {
return m_class; return get_thread_class(id_type());
} }
template <DerivedFrom<cpu_thread> T> template <DerivedFrom<cpu_thread> T>
@ -301,7 +301,6 @@ public:
private: private:
static thread_local cpu_thread* g_tls_this_thread; static thread_local cpu_thread* g_tls_this_thread;
const thread_class m_class;
}; };
template <DerivedFrom<cpu_thread> T = cpu_thread> template <DerivedFrom<cpu_thread> T = cpu_thread>