Removing `Core::IsGPUThread()` and `Core::IsCPUThread()` calls in favor of simple `bool isCPUThread` parameter value.
This commit is contained in:
parent
4137fc0023
commit
f1ef51abc8
|
@ -468,7 +468,7 @@ void STACKALIGN GatherPipeBursted()
|
|||
}
|
||||
|
||||
if (IsOnThread())
|
||||
SetCpStatus();
|
||||
SetCpStatus(true);
|
||||
|
||||
// update the fifo-pointer
|
||||
if (fifo.CPWritePointer >= fifo.CPEnd)
|
||||
|
@ -518,14 +518,14 @@ void AbortFrame()
|
|||
|
||||
}
|
||||
|
||||
void SetCpStatus()
|
||||
void SetCpStatus(bool isCPUThread)
|
||||
{
|
||||
// overflow & underflow check
|
||||
fifo.bFF_HiWatermark = (fifo.CPReadWriteDistance > fifo.CPHiWatermark);
|
||||
fifo.bFF_LoWatermark = (fifo.CPReadWriteDistance < fifo.CPLoWatermark);
|
||||
|
||||
// breakpoint
|
||||
if (Core::IsGPUThread())
|
||||
if (!isCPUThread)
|
||||
{
|
||||
if (fifo.bFF_BPEnable)
|
||||
{
|
||||
|
@ -569,13 +569,15 @@ void SetCpStatus()
|
|||
{
|
||||
if (!interrupt || bpInt || undfInt || ovfInt)
|
||||
{
|
||||
if (Core::IsGPUThread())
|
||||
if (!isCPUThread)
|
||||
{
|
||||
// GPU thread:
|
||||
interruptWaiting = true;
|
||||
CommandProcessor::UpdateInterruptsFromVideoBackend(userdata);
|
||||
}
|
||||
else if (Core::IsCPUThread())
|
||||
else
|
||||
{
|
||||
// CPU thread:
|
||||
interruptSet = interrupt;
|
||||
INFO_LOG(COMMANDPROCESSOR,"Interrupt set");
|
||||
ProcessorInterface::SetInterrupt(INT_CAUSE_CP, interrupt);
|
||||
|
|
|
@ -155,7 +155,7 @@ void Write16(const u16 _Data, const u32 _Address);
|
|||
void Read32(u32& _rReturnValue, const u32 _Address);
|
||||
void Write32(const u32 _Data, const u32 _Address);
|
||||
|
||||
void SetCpStatus();
|
||||
void SetCpStatus(bool isCPUThread = false);
|
||||
void GatherPipeBursted();
|
||||
void UpdateInterrupts(u64 userdata);
|
||||
void UpdateInterruptsFromVideoBackend(u64 userdata);
|
||||
|
|
Loading…
Reference in New Issue