From 80827aa31a2aa8e35fa168397de4b52c47e0db13 Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 14 Aug 2019 18:18:06 +0300 Subject: [PATCH] Stub sys_process_get_number_of_object(object == SYS_TRACE_OBJECT) --- rpcs3/Emu/Cell/lv2/sys_process.cpp | 2 +- rpcs3/Emu/Cell/lv2/sys_trace.cpp | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_process.cpp b/rpcs3/Emu/Cell/lv2/sys_process.cpp index 126b221745..2d1f8d0cc7 100644 --- a/rpcs3/Emu/Cell/lv2/sys_process.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_process.cpp @@ -68,7 +68,7 @@ s32 sys_process_get_number_of_object(u32 object, vm::ptr nump) case SYS_INTR_SERVICE_HANDLE_OBJECT: *nump = idm_get_count(); break; case SYS_EVENT_QUEUE_OBJECT: *nump = idm_get_count(); break; case SYS_EVENT_PORT_OBJECT: *nump = idm_get_count(); break; - case SYS_TRACE_OBJECT: fmt::throw_exception("SYS_TRACE_OBJECT" HERE); + case SYS_TRACE_OBJECT: sys_process.error("sys_process_get_number_of_object: object = SYS_TRACE_OBJECT"); *nump = 0; break; case SYS_SPUIMAGE_OBJECT: fmt::throw_exception("SYS_SPUIMAGE_OBJECT" HERE); case SYS_PRX_OBJECT: *nump = idm_get_count(); break; case SYS_SPUPORT_OBJECT: fmt::throw_exception("SYS_SPUPORT_OBJECT" HERE); diff --git a/rpcs3/Emu/Cell/lv2/sys_trace.cpp b/rpcs3/Emu/Cell/lv2/sys_trace.cpp index 3007f8a56a..2b0e5870fc 100644 --- a/rpcs3/Emu/Cell/lv2/sys_trace.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_trace.cpp @@ -1,4 +1,4 @@ -#include "stdafx.h" +#include "stdafx.h" #include "sys_trace.h" #include "Emu/System.h" @@ -9,62 +9,64 @@ LOG_CHANNEL(sys_trace); +// TODO: DEX/DECR mode support? + s32 sys_trace_create() { sys_trace.todo("sys_trace_create()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_start() { sys_trace.todo("sys_trace_start()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_stop() { sys_trace.todo("sys_trace_stop()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_update_top_index() { sys_trace.todo("sys_trace_update_top_index()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_destroy() { sys_trace.todo("sys_trace_destroy()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_drain() { sys_trace.todo("sys_trace_drain()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_attach_process() { sys_trace.todo("sys_trace_attach_process()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_allocate_buffer() { sys_trace.todo("sys_trace_allocate_buffer()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_free_buffer() { sys_trace.todo("sys_trace_free_buffer()"); - return CELL_OK; + return CELL_ENOSYS; } s32 sys_trace_create2() { sys_trace.todo("sys_trace_create2()"); - return CELL_OK; + return CELL_ENOSYS; }