Global: Correct many endian types and casts.

This commit is contained in:
aliaspider authored and Unknown W. Brackets committed 2021-02-18 22:25:24 -08:00
1 parent 1197795945
commit 9a3e5879bb
22 files changed
+103 -100

No files matched your search

+3 -3
View File
@@ -1187,7 +1187,7 @@ void __KernelThreadingShutdown() {
std::string __KernelThreadingSummary() {
PSPThread *t = __GetCurrentThread();
return StringFromFormat("Cur thread: %s (attr %08x)", t ? t->GetName() : "(null)", t ? t->nt.attr : 0);
return StringFromFormat("Cur thread: %s (attr %08x)", t ? t->GetName() : "(null)", t ? (u32)t->nt.attr : 0);
}
const char *__KernelGetThreadName(SceUID threadID)
@@ -1400,7 +1400,7 @@ u32 sceKernelGetThreadmanIdList(u32 type, u32 readBufPtr, u32 readBufSize, u32 i
}
u32 total = 0;
auto uids = PSPPointer<SceUID>::Create(readBufPtr);
auto uids = PSPPointer<SceUID_le>::Create(readBufPtr);
u32 error;
if (type > 0 && type <= SCE_KERNEL_TMID_Tlspl) {
DEBUG_LOG(SCEKERNEL, "sceKernelGetThreadmanIdList(%i, %08x, %i, %08x)", type, readBufPtr, readBufSize, idCountPtr);
@@ -2020,7 +2020,7 @@ int __KernelStartThread(SceUID threadToStartID, int argSize, u32 argBlockPtr, bo
return error;
PSPThread *cur = __GetCurrentThread();
__KernelResetThread(startThread, cur ? cur->nt.currentPriority : 0);
__KernelResetThread(startThread, cur ? (s32)cur->nt.currentPriority : 0);
u32 &sp = startThread->context.r[MIPS_REG_SP];
// Force args means just use those as a0/a1 without any special treatment.