summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CommandProcessor.h
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2023-12-21 17:46:28 +0000
committerGitHub <noreply@github.com>2023-12-21 17:46:28 +0000
commit8d4575cfd821e23dc5d1b7479fde362a76177df4 (patch)
tree251559b45336ae7a14c778dba34315f2bd30f9c9 /Source/Core/VideoCommon/CommandProcessor.h
parentf7b655e5da3edfa7a83c510f92c364b8f4c174e5 (diff)
parentf97b2d472acdc8f69427f184fa8fc35a08f231e6 (diff)
Merge pull request #12454 from lioncash/proc
VideoCommon/CommandProcessor: Pass system instance through constructor
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.h')
-rw-r--r--Source/Core/VideoCommon/CommandProcessor.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/Source/Core/VideoCommon/CommandProcessor.h b/Source/Core/VideoCommon/CommandProcessor.h
index ccc381b535..932c2218ea 100644
--- a/Source/Core/VideoCommon/CommandProcessor.h
+++ b/Source/Core/VideoCommon/CommandProcessor.h
@@ -160,24 +160,26 @@ u32 GetPhysicalAddressMask();
class CommandProcessorManager
{
public:
- void Init(Core::System& system);
+ explicit CommandProcessorManager(Core::System& system);
+
+ void Init();
void DoState(PointerWrap& p);
- void RegisterMMIO(Core::System& system, MMIO::Mapping* mmio, u32 base);
+ void RegisterMMIO(MMIO::Mapping* mmio, u32 base);
- void SetCPStatusFromGPU(Core::System& system);
- void SetCPStatusFromCPU(Core::System& system);
- void GatherPipeBursted(Core::System& system);
- void UpdateInterrupts(Core::System& system, u64 userdata);
- void UpdateInterruptsFromVideoBackend(Core::System& system, u64 userdata);
+ void SetCPStatusFromGPU();
+ void SetCPStatusFromCPU();
+ void GatherPipeBursted();
+ void UpdateInterrupts(u64 userdata);
+ void UpdateInterruptsFromVideoBackend(u64 userdata);
bool IsInterruptWaiting() const;
void SetCpClearRegister();
- void SetCpControlRegister(Core::System& system);
- void SetCpStatusRegister(Core::System& system);
+ void SetCpControlRegister();
+ void SetCpStatusRegister();
- void HandleUnknownOpcode(Core::System& system, u8 cmd_byte, const u8* buffer, bool preprocess);
+ void HandleUnknownOpcode(u8 cmd_byte, const u8* buffer, bool preprocess);
// This one is shared between gfx thread and emulator thread.
// It is only used by the Fifo and by the CommandProcessor.
@@ -203,6 +205,8 @@ private:
Common::Flag m_interrupt_waiting;
bool m_is_fifo_error_seen = false;
+
+ Core::System& m_system;
};
} // namespace CommandProcessor