summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar mailwl2017-02-03 10:07:44 +0300
committerGravatar Yuri Kunde Schlesner2017-02-02 23:07:44 -0800
commita53714acd3da96d689f6ddc5708e8662b341a4b3 (patch)
treec0f1ab56b31dbf5b78333fae282d475c43751c9a /src
parentHLE/Applets: Stub Mint (eShop) Applet (#2463) (diff)
downloadyuzu-a53714acd3da96d689f6ddc5708e8662b341a4b3.tar.gz
yuzu-a53714acd3da96d689f6ddc5708e8662b341a4b3.tar.xz
yuzu-a53714acd3da96d689f6ddc5708e8662b341a4b3.zip
GSP_GPU::StoreDataCache stubbed (#2428)
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index a8c1331ed..1457518d4 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -705,6 +705,33 @@ static void ReleaseRight(Interface* self) {
705 LOG_WARNING(Service_GSP, "called"); 705 LOG_WARNING(Service_GSP, "called");
706} 706}
707 707
708/**
709 * GSP_GPU::StoreDataCache service function
710 *
711 * This Function is a no-op, We aren't emulating the CPU cache any time soon.
712 *
713 * Inputs:
714 * 0 : Header code [0x001F0082]
715 * 1 : Address
716 * 2 : Size
717 * 3 : Value 0, some descriptor for the KProcess Handle
718 * 4 : KProcess handle
719 * Outputs:
720 * 1 : Result of function, 0 on success, otherwise error code
721 */
722static void StoreDataCache(Interface* self) {
723 u32* cmd_buff = Kernel::GetCommandBuffer();
724 u32 address = cmd_buff[1];
725 u32 size = cmd_buff[2];
726 u32 process = cmd_buff[4];
727
728 cmd_buff[0] = IPC::MakeHeader(0x1F, 0x1, 0);
729 cmd_buff[1] = RESULT_SUCCESS.raw; // No error
730
731 LOG_DEBUG(Service_GSP, "(STUBBED) called address=0x%08X, size=0x%08X, process=0x%08X", address,
732 size, process);
733}
734
708const Interface::FunctionInfo FunctionTable[] = { 735const Interface::FunctionInfo FunctionTable[] = {
709 {0x00010082, WriteHWRegs, "WriteHWRegs"}, 736 {0x00010082, WriteHWRegs, "WriteHWRegs"},
710 {0x00020084, WriteHWRegsWithMask, "WriteHWRegsWithMask"}, 737 {0x00020084, WriteHWRegsWithMask, "WriteHWRegsWithMask"},
@@ -736,7 +763,7 @@ const Interface::FunctionInfo FunctionTable[] = {
736 {0x001C0040, nullptr, "SetLedForceOff"}, 763 {0x001C0040, nullptr, "SetLedForceOff"},
737 {0x001D0040, nullptr, "SetTestCommand"}, 764 {0x001D0040, nullptr, "SetTestCommand"},
738 {0x001E0080, nullptr, "SetInternalPriorities"}, 765 {0x001E0080, nullptr, "SetInternalPriorities"},
739 {0x001F0082, nullptr, "StoreDataCache"}, 766 {0x001F0082, StoreDataCache, "StoreDataCache"},
740}; 767};
741 768
742GSP_GPU::GSP_GPU() { 769GSP_GPU::GSP_GPU() {