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: