diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-02-16 19:30:10 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-02-16 19:30:10 +0100 |
| commit | 2a7a94387ca0e096f698c0468307bfe6b1d365d7 (patch) | |
| tree | c27d33a1b27de83d378708f9c966c1a1b8d16af5 /Source/Core/VideoBackends/Software/SWmain.cpp | |
| parent | 1e94853301b15fcce23db311f480b64d12ac4d41 (diff) | |
| parent | 96a66ada2e11420aeaf90df37100d67796c0bdf5 (diff) | |
Merge pull request #69 from delroth/mmio-interface
Redesign of the MMIO access interface
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWmain.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 4f60f9d4f6..132b40fa81 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -360,28 +360,15 @@ void VideoSoftware::Video_AbortFrame(void) { } -readFn16 VideoSoftware::Video_CPRead16() +void VideoSoftware::RegisterCPMMIO(MMIO::Mapping* mmio, u32 base) { - return SWCommandProcessor::Read16; -} -writeFn16 VideoSoftware::Video_CPWrite16() -{ - return SWCommandProcessor::Write16; + SWCommandProcessor::RegisterMMIO(mmio, base); } -readFn16 VideoSoftware::Video_PERead16() -{ - return SWPixelEngine::Read16; -} -writeFn16 VideoSoftware::Video_PEWrite16() +void VideoSoftware::RegisterPEMMIO(MMIO::Mapping* mmio, u32 base) { - return SWPixelEngine::Write16; + SWPixelEngine::RegisterMMIO(mmio, base); } -writeFn32 VideoSoftware::Video_PEWrite32() -{ - return SWPixelEngine::Write32; -} - // Draw messages on top of the screen unsigned int VideoSoftware::PeekMessages() |
