Skip to content

Commit

Permalink
SPURS: Disable kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
gopalsr83 committed Feb 19, 2015
1 parent 1356a17 commit 26d3bfe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
20 changes: 12 additions & 8 deletions rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,14 +2284,18 @@ s32 cellSpursShutdownTaskset(vm::ptr<CellSpursTaskset> taskset)

u32 _cellSpursGetSdkVersion()
{
s32 sdk_version;

if (process_get_sdk_version(process_getpid(), sdk_version) != CELL_OK)
{
throw __FUNCTION__;
}

return sdk_version;
// Commenting this out for now since process_get_sdk_version does not return
// the correct SDK version and instead returns a version too high for the game
// and causes SPURS to fail.
//s32 sdk_version;

//if (process_get_sdk_version(process_getpid(), sdk_version) != CELL_OK)
//{
// throw __FUNCTION__;
//}

//return sdk_version;
return 1;
}

s32 spursCreateTask(vm::ptr<CellSpursTaskset> taskset, vm::ptr<u32> task_id, vm::ptr<u32> elf_addr, vm::ptr<u32> context_addr, u32 context_size, vm::ptr<CellSpursTaskLsPattern> ls_pattern, vm::ptr<CellSpursTaskArgument> arg)
Expand Down
12 changes: 6 additions & 6 deletions rpcs3/Emu/SysCalls/Modules/cellSpursSpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ bool spursKernelWorkloadExit(SPUThread & spu) {

/// SPURS kernel entry point
bool spursKernelEntry(SPUThread & spu) {
//while (true) {
// std::this_thread::sleep_for(std::chrono::milliseconds(100));
// if (Emu.IsStopped()) {
// return false;
// }
//}
while (true) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
if (Emu.IsStopped()) {
return false;
}
}

auto ctxt = vm::get_ptr<SpursKernelContext>(spu.ls_offset + 0x100);
memset(ctxt, 0, sizeof(SpursKernelContext));
Expand Down

0 comments on commit 26d3bfe

Please sign in to comment.