From b3cf1c9e8b7e44d00a1e12b1984323c9ff92a51b Mon Sep 17 00:00:00 2001 From: purpasmart96 Date: Wed, 15 Oct 2014 16:03:58 -0700 Subject: [PATCH] Added GSP_GPU::FlushDataCache This cannot be finished until Kprocess is implemented, until then it just shows an info log regarding what it called. --- src/core/hle/service/gsp.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp index 614d9584d..86869ff06 100644 --- a/src/core/hle/service/gsp.cpp +++ b/src/core/hle/service/gsp.cpp @@ -149,6 +149,30 @@ void SetBufferSwap(Service::Interface* self) { cmd_buff[1] = 0; // No error } +/** +* GSP_GPU::FlushDataCache service function +* +* TODO: This will need to be finished in the future when KProcess is implemented. +* +* Inputs: +* 1 : Address +* 2 : Size +* 3 : Value zero +* 4 : KProcess handle +* Outputs: +* 1 : Result of function, 0 on success, otherwise error code +*/ +void FlushDataCache(Service::Interface* self) { + u32* cmd_buff = Service::GetCommandBuffer(); + u32 addr = cmd_buff[1]; + u32 size = cmd_buff[2]; + u32 value = cmd_buff[3]; + u32 process = cmd_buff[4]; + + cmd_buff[1] = 0; // No error + INFO_LOG(GSP, "called addr=0x%08X, size=0x%08X, value=0x%08X, process=0x%08X", addr, size, value, process); +} + /** * GSP_GPU::RegisterInterruptRelayQueue service function * Inputs: