summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWCommandProcessor.cpp
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-06-21 22:23:19 +0200
committerTony Wasserka <neobrainx@gmail.com>2014-06-21 22:23:19 +0200
commitd60f91ef5a87d3df4b8c956c6c1dcdafacd55910 (patch)
tree3b95a7c4b2e6b1eaa7b75418631a2de1cb7c3fb7 /Source/Core/VideoBackends/Software/SWCommandProcessor.cpp
parentfbca397c924e3906e9ab26ec3f967760385cc8d6 (diff)
parent8bf3ffc76f54ab8b392a3922b1fedfb8f8cd76fd (diff)
Merge pull request #501 from magumagu/sw-cp-structs
VideoSoftware: remove duplicated CommandProcessor structures.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWCommandProcessor.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWCommandProcessor.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Software/SWCommandProcessor.cpp b/Source/Core/VideoBackends/Software/SWCommandProcessor.cpp
index 8329024e3a..d310a5584d 100644
--- a/Source/Core/VideoBackends/Software/SWCommandProcessor.cpp
+++ b/Source/Core/VideoBackends/Software/SWCommandProcessor.cpp
@@ -152,8 +152,12 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
// The low part of MMIO regs for FIFO addresses needs to be aligned to 32
// bytes.
u32 fifo_addr_lo_regs[] = {
- FIFO_BASE_LO, FIFO_END_LO, FIFO_WRITE_POINTER_LO,
- FIFO_READ_POINTER_LO, FIFO_BP_LO, FIFO_RW_DISTANCE_LO,
+ CommandProcessor::FIFO_BASE_LO,
+ CommandProcessor::FIFO_END_LO,
+ CommandProcessor::FIFO_WRITE_POINTER_LO,
+ CommandProcessor::FIFO_READ_POINTER_LO,
+ CommandProcessor::FIFO_BP_LO,
+ CommandProcessor::FIFO_RW_DISTANCE_LO,
};
for (u32 reg : fifo_addr_lo_regs)
{
@@ -164,7 +168,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
// The clear register needs to perform some more complicated operations on
// writes.
- mmio->RegisterWrite(base | CLEAR_REGISTER,
+ mmio->RegisterWrite(base | CommandProcessor::CLEAR_REGISTER,
MMIO::ComplexWrite<u16>([](u32, u16 val) {
UCPClearReg tmpClear(val);
@@ -281,7 +285,7 @@ void SetStatus()
cpreg.status.ReadIdle = cpreg.readptr == cpreg.writeptr;
- bool bpInt = cpreg.status.Breakpoint && cpreg.ctrl.BreakPointIntEnable;
+ bool bpInt = cpreg.status.Breakpoint && cpreg.ctrl.BPInt;
bool ovfInt = cpreg.status.OverflowHiWatermark && cpreg.ctrl.FifoOverflowIntEnable;
bool undfInt = cpreg.status.UnderflowLoWatermark && cpreg.ctrl.FifoUnderflowIntEnable;