From 273403676a2732f45b6e0502ff6429b217612708 Mon Sep 17 00:00:00 2001 From: Sour Date: Fri, 22 Mar 2019 21:10:27 -0400 Subject: [PATCH] HDMA: No overhead for HDMA if all channels are disabled (?) --- Core/DmaController.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/DmaController.cpp b/Core/DmaController.cpp index 18bf676..1982b69 100644 --- a/Core/DmaController.cpp +++ b/Core/DmaController.cpp @@ -83,8 +83,11 @@ void DmaController::RunDma(DmaChannelConfig &channel) void DmaController::InitHdmaChannels() { - //"The overhead is ~18 master cycles" - _memoryManager->IncrementMasterClockValue<18>(); + if(_hdmaChannels) { + //"The overhead is ~18 master cycles" + _memoryManager->IncrementMasterClockValue<18>(); + } + for(int i = 0; i < 8; i++) { DmaChannelConfig &ch = _channel[i];