From 167d6a08f8a06d33e39716ce466287ac2fc6f296 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 31 Aug 2017 21:30:13 +0300 Subject: [PATCH] Implemented syscall _sys_spu_image_get_information --- rpcs3/Emu/Cell/lv2/sys_spu.cpp | 8 +++++--- rpcs3/Emu/Cell/lv2/sys_spu.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.cpp b/rpcs3/Emu/Cell/lv2/sys_spu.cpp index b442ab7702..7cb6319552 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_spu.cpp @@ -146,11 +146,13 @@ error_code sys_spu_initialize(u32 max_usable_spu, u32 max_raw_spu) return CELL_OK; } -error_code _sys_spu_image_get_information(vm::ptr img, u32 ptr1, u32 ptr2) +error_code _sys_spu_image_get_information(vm::ptr img, vm::ptr entry_point, vm::ptr nsegs) { - sys_spu.todo("_sys_spu_image_get_information(img=*0x%x, 1=*0x%x, 2=*0x%x)", img, ptr1, ptr2); + sys_spu.warning("_sys_spu_image_get_information(img=*0x%x, entry_point=*0x%x, nsegs=*0x%x)", img, entry_point, nsegs); - fmt::throw_exception("Unimplemented syscall: _sys_spu_image_get_information"); + *entry_point = img->entry_point; + *nsegs = img->nsegs; + return CELL_OK; } error_code sys_spu_image_open(vm::ptr img, vm::cptr path) diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.h b/rpcs3/Emu/Cell/lv2/sys_spu.h index 5e06139953..b65b7a6bf9 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.h +++ b/rpcs3/Emu/Cell/lv2/sys_spu.h @@ -286,7 +286,7 @@ class ppu_thread; // Syscalls error_code sys_spu_initialize(u32 max_usable_spu, u32 max_raw_spu); -error_code _sys_spu_image_get_information(vm::ps3::ptr img, u32 ptr1, u32 ptr2); +error_code _sys_spu_image_get_information(vm::ps3::ptr img, vm::ps3::ptr entry_point, vm::ps3::ptr nsegs); error_code sys_spu_image_open(vm::ps3::ptr img, vm::ps3::cptr path); error_code _sys_spu_image_import(vm::ps3::ptr img, u32 src, u32 size, u32 arg4); error_code _sys_spu_image_close(vm::ps3::ptr img);