mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
* replace GetThreadID with std::this_thread.getId() * name all anonymous structs and unions that contain non-trivially constructable objects * made default constructor for big endian type noexcept to make it work with std::atomic * move instantiated specialized template function members ouside of the class definition to comply with the standard * added default instantiation for template parameter "=nullptr" * used the C++11 standardized thread_local instead of the __declspec(thread) * added transitional definitions to bridge the microsoft specific calls (compare and exchange and aligned alloc) * removed cyclic dependency between Emulator->CPUThreadManager->CPUThread->SMutex->Emulator->... * fixed some instances of indentation by space instead of tabs * surrounded some unused code with an #if 0 block to make sure it doesn't compile
23 lines
539 B
C++
23 lines
539 B
C++
#if 0
|
|
#include "stdafx.h"
|
|
#include "Emu/SysCalls/SysCalls.h"
|
|
|
|
static SysCallBase sc_spu("sys_spu");
|
|
|
|
u32 _max_usable_spu = 0;
|
|
u32 _max_raw_spu = 0;
|
|
|
|
int sys_spu_initialize(u32 max_usable_spu, u32 max_raw_spu)
|
|
{
|
|
sc_spu.Log("sys_spu_initialize(max_usable_spu=%d, max_raw_spu=%d)", max_usable_spu, max_raw_spu);
|
|
_max_usable_spu = max_usable_spu;
|
|
_max_raw_spu = max_raw_spu;
|
|
return CELL_OK;
|
|
}
|
|
|
|
int sys_raw_spu_create(u32 id_addr, u32 attr_addr)
|
|
{
|
|
Memory.Write32(id_addr, Emu.GetIdManager().GetNewID("raw_spu"));
|
|
return CELL_OK;
|
|
}
|
|
#endif
|