mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Small refactoring
This commit is contained in:
parent
8f1a8450be
commit
597d07bf24
46 changed files with 348 additions and 372 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
CPUThread* GetCurrentCPUThread()
|
||||
{
|
||||
return (CPUThread*)GetCurrentNamedThread();
|
||||
return dynamic_cast<CPUThread*>(GetCurrentNamedThread());
|
||||
}
|
||||
|
||||
CPUThread::CPUThread(CPUThreadType type)
|
||||
|
@ -75,7 +75,6 @@ void CPUThread::CloseStack()
|
|||
}
|
||||
|
||||
m_stack_size = 0;
|
||||
m_stack_point = 0;
|
||||
}
|
||||
|
||||
void CPUThread::SetId(const u32 id)
|
||||
|
@ -131,7 +130,7 @@ int CPUThread::ThreadStatus()
|
|||
return CPUThread_Running;
|
||||
}
|
||||
|
||||
void CPUThread::SetEntry(const u64 pc)
|
||||
void CPUThread::SetEntry(const u32 pc)
|
||||
{
|
||||
entry = pc;
|
||||
}
|
||||
|
@ -150,7 +149,7 @@ void CPUThread::NextPc(u8 instr_size)
|
|||
}
|
||||
}
|
||||
|
||||
void CPUThread::SetBranch(const u64 pc, bool record_branch)
|
||||
void CPUThread::SetBranch(const u32 pc, bool record_branch)
|
||||
{
|
||||
m_is_branch = true;
|
||||
nPC = pc;
|
||||
|
@ -159,7 +158,7 @@ void CPUThread::SetBranch(const u64 pc, bool record_branch)
|
|||
CallStackBranch(pc);
|
||||
}
|
||||
|
||||
void CPUThread::SetPc(const u64 pc)
|
||||
void CPUThread::SetPc(const u32 pc)
|
||||
{
|
||||
PC = pc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue