From 2ed0902ae25c31e39ccea1b4b6574528af6cf9f1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 21 Dec 2012 22:11:44 -0800 Subject: [PATCH] Cleanup sceGe stubs and void return values. --- Core/HLE/sceGe.cpp | 67 +++++++++++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 24 deletions(-) diff --git a/Core/HLE/sceGe.cpp b/Core/HLE/sceGe.cpp index 08eda4ba9f..ca277b5856 100644 --- a/Core/HLE/sceGe.cpp +++ b/Core/HLE/sceGe.cpp @@ -87,12 +87,19 @@ u32 sceGeListEnQueueHead(u32 listAddress, u32 stallAddress, u32 callbackId, return listID; } -void sceGeListUpdateStallAddr(u32 displayListID, u32 stallAddress) +int sceGeListDeQueue(u32 listID) +{ + ERROR_LOG(HLE, "UNIMPL sceGeListDeQueue(%08x)", listID); + return 0; +} + +int sceGeListUpdateStallAddr(u32 displayListID, u32 stallAddress) { DEBUG_LOG(HLE, "sceGeListUpdateStallAddr(dlid=%i,stalladdr=%08x)", displayListID, stallAddress); gpu->UpdateStall(displayListID, stallAddress); + return 0; } int sceGeListSync(u32 displayListID, u32 mode) //0 : wait for completion 1:check and return @@ -113,19 +120,20 @@ u32 sceGeDrawSync(u32 mode) return 0; } -void sceGeContinue() +int sceGeContinue() { ERROR_LOG(HLE, "UNIMPL sceGeContinue"); // no arguments + return 0; } -void sceGeBreak(u32 mode) +int sceGeBreak(u32 mode) { //mode => 0 : current dlist 1: all drawing ERROR_LOG(HLE, "UNIMPL sceGeBreak(mode=%d)", mode); + return 0; } - u32 sceGeSetCallback(u32 structAddr) { DEBUG_LOG(HLE, "sceGeSetCallback(struct=%08x)", structAddr); @@ -150,10 +158,14 @@ u32 sceGeSetCallback(u32 structAddr) return 0; } -void sceGeUnsetCallback(u32 cbID) { +int sceGeUnsetCallback(u32 cbID) +{ DEBUG_LOG(HLE, "sceGeUnsetCallback(cbid=%08x)", cbID); + sceKernelReleaseSubIntrHandler(PSP_GE_INTR, PSP_GE_SUBINTR_FINISH); sceKernelReleaseSubIntrHandler(PSP_GE_INTR, PSP_GE_SUBINTR_SIGNAL); + + return 0; } // Points to 512 32-bit words, where we can probably layout the context however we want @@ -199,9 +211,16 @@ u32 sceGeRestoreContext(u32 ctxAddr) return 0; } -void sceGeGetMtx() +int sceGeGetMtx(int type, u32 matrixPtr) { - ERROR_LOG(HLE, "UNIMPL sceGeGetMtx()"); + ERROR_LOG(HLE, "UNIMPL sceGeGetMtx(%d, %08x)", type, matrixPtr); + return 0; +} + +u32 sceGeGetCmd(int cmd) +{ + ERROR_LOG(HLE, "UNIMPL sceGeGetCmd()"); + return 0; } u32 sceGeEdramSetAddrTranslation(int new_size) @@ -215,23 +234,23 @@ u32 sceGeEdramSetAddrTranslation(int new_size) const HLEFunction sceGe_user[] = { - {0xE47E40E4,&WrapU_V, "sceGeEdramGetAddr"}, - {0xAB49E76A,&WrapU_UUUU, "sceGeListEnQueue"}, - {0x1C0D95A6,&WrapU_UUUU, "sceGeListEnQueueHead"}, - {0xE0D68148,&WrapV_UU, "sceGeListUpdateStallAddr"}, - {0x03444EB4,&WrapI_UU, "sceGeListSync"}, - {0xB287BD61,&WrapU_U, "sceGeDrawSync"}, - {0xB448EC0D,&WrapV_U, "sceGeBreak"}, - {0x4C06E472,sceGeContinue, "sceGeContinue"}, - {0xA4FC06A4,&WrapU_U, "sceGeSetCallback"}, - {0x05DB22CE,&WrapV_U, "sceGeUnsetCallback"}, - {0x1F6752AD,&WrapU_V, "sceGeEdramGetSize"}, - {0xB77905EA,&WrapU_I,"sceGeEdramSetAddrTranslation"}, - {0xDC93CFEF,0,"sceGeGetCmd"}, - {0x57C8945B,&sceGeGetMtx,"sceGeGetMtx"}, - {0x438A385A,&WrapU_U,"sceGeSaveContext"}, - {0x0BF608FB,&WrapU_U,"sceGeRestoreContext"}, - {0x5FB86AB0,0,"sceGeListDeQueue"}, + {0xE47E40E4, WrapU_V, "sceGeEdramGetAddr"}, + {0xAB49E76A, WrapU_UUUU, "sceGeListEnQueue"}, + {0x1C0D95A6, WrapU_UUUU, "sceGeListEnQueueHead"}, + {0xE0D68148, WrapI_UU, "sceGeListUpdateStallAddr"}, + {0x03444EB4, WrapI_UU, "sceGeListSync"}, + {0xB287BD61, WrapU_U, "sceGeDrawSync"}, + {0xB448EC0D, WrapI_U, "sceGeBreak"}, + {0x4C06E472, WrapI_V, "sceGeContinue"}, + {0xA4FC06A4, WrapU_U, "sceGeSetCallback"}, + {0x05DB22CE, WrapI_U, "sceGeUnsetCallback"}, + {0x1F6752AD, WrapU_V, "sceGeEdramGetSize"}, + {0xB77905EA, WrapU_I, "sceGeEdramSetAddrTranslation"}, + {0xDC93CFEF, WrapU_I, "sceGeGetCmd"}, + {0x57C8945B, WrapI_IU, "sceGeGetMtx"}, + {0x438A385A, WrapU_U, "sceGeSaveContext"}, + {0x0BF608FB, WrapU_U, "sceGeRestoreContext"}, + {0x5FB86AB0, WrapI_U, "sceGeListDeQueue"}, }; void Register_sceGe_user()