Clean vm::ps3 namespace use

This commit is contained in:
Nekotekina 2018-02-09 17:49:37 +03:00
parent 76be7d40ac
commit cce0ad0c35
176 changed files with 693 additions and 698 deletions

View file

@ -158,7 +158,7 @@ void mfc_thread::cpu_task()
if ((cmd.cmd & ~(MFC_BARRIER_MASK | MFC_FENCE_MASK)) == MFC_PUTQLLUC_CMD) if ((cmd.cmd & ~(MFC_BARRIER_MASK | MFC_FENCE_MASK)) == MFC_PUTQLLUC_CMD)
{ {
auto& data = vm::ps3::_ref<decltype(spu.rdata)>(cmd.eal); auto& data = vm::_ref<decltype(spu.rdata)>(cmd.eal);
const auto to_write = spu._ref<decltype(spu.rdata)>(cmd.lsa & 0x3ffff); const auto to_write = spu._ref<decltype(spu.rdata)>(cmd.lsa & 0x3ffff);
cmd.size = 0; cmd.size = 0;

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -2,7 +2,7 @@
#include "Utilities/Thread.h" #include "Utilities/Thread.h"
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum CellAudioError : u32 enum CellAudioError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum enum

View file

@ -4,7 +4,7 @@
#include "cellBgdl.h" #include "cellBgdl.h"
namespace vm { using namespace ps3; }
logs::channel cellBGDL("cellBGDL"); logs::channel cellBGDL("cellBGDL");

View file

@ -30,5 +30,5 @@ struct CellBGDLInfo
be_t<u64> received_size; be_t<u64> received_size;
be_t<u64> content_size; be_t<u64> content_size;
be_t<s32> state; // CellBGDLState be_t<s32> state; // CellBGDLState
vm::ps3::bptr<void> reserved; vm::bptr<void> reserved;
}; };

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// libCelp8Enc = 0x806140a1 - 0x806140bf // libCelp8Enc = 0x806140a1 - 0x806140bf

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// libCelpEnc = 0x80614001 - 0x806140ff // libCelpEnc = 0x80614001 - 0x806140ff

View file

@ -2,7 +2,7 @@
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellCrossController("cellCrossController"); logs::channel cellCrossController("cellCrossController");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// libDaisy = 0x80410501 - 0x804105ff // libDaisy = 0x80410501 - 0x804105ff

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum CellFiberError : u32 enum CellFiberError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum enum

View file

@ -2,7 +2,7 @@
#include "cellFont.h" #include "cellFont.h"
namespace vm { using namespace ps3; }
struct CellFontLibraryConfigFT struct CellFontLibraryConfigFT
{ {

View file

@ -11,7 +11,7 @@
#include <mutex> #include <mutex>
namespace vm { using namespace ps3; }
logs::channel cellFs("cellFs"); logs::channel cellFs("cellFs");

View file

@ -2,7 +2,7 @@
#include "Emu/Cell/ErrorCodes.h" #include "Emu/Cell/ErrorCodes.h"
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
#include "Emu/RSX/GCM.h" #include "Emu/RSX/GCM.h"

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
static const float CELL_GEM_SPHERE_RADIUS_MM = 22.5f; static const float CELL_GEM_SPHERE_RADIUS_MM = 22.5f;

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// libHttp = 0x80710001 - 0x80710fff // libHttp = 0x80710001 - 0x80710fff
// libHttps = 0x80710a01 - 0x80710aff // libHttps = 0x80710a01 - 0x80710aff

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// libHttp_Util: 0x80711001 - 0x807110ff // libHttp_Util: 0x80711001 - 0x807110ff

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
typedef vm::ptr<void> CellImeJpHandle; typedef vm::ptr<void> CellImeJpHandle;
@ -23,5 +23,3 @@ enum {
CELL_IMEJP_RET_THROUGH = 1, CELL_IMEJP_RET_THROUGH = 1,
CELL_IMEJP_RET_CONFIRMED = 2, CELL_IMEJP_RET_CONFIRMED = 2,
}; };

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
//Return Codes //Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -6,7 +6,7 @@
#include "Emu/Io/KeyboardHandler.h" #include "Emu/Io/KeyboardHandler.h"
#include "cellKb.h" #include "cellKb.h"
namespace vm { using namespace ps3; }
extern logs::channel sys_io; extern logs::channel sys_io;

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellKey2char("cellKey2char"); logs::channel cellKey2char("cellKey2char");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// L10nResult // L10nResult
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
enum enum
{ {

View file

@ -2,7 +2,7 @@
#include "Utilities/BitField.h" #include "Utilities/BitField.h"
namespace vm { using namespace ps3; }
enum enum
{ {

View file

@ -6,7 +6,7 @@
#include "cellMusic.h" #include "cellMusic.h"
#include "cellSysutil.h" #include "cellSysutil.h"
namespace vm { using namespace ps3; }
logs::channel cellMusic("cellMusic"); logs::channel cellMusic("cellMusic");

View file

@ -120,8 +120,8 @@ enum
CELL_MUSIC_SELECTION_CONTEXT_SIZE = 2048, CELL_MUSIC_SELECTION_CONTEXT_SIZE = 2048,
}; };
using CellMusicCallback = void(u32 event, vm::ps3::ptr<void> param, vm::ps3::ptr<void> userData); using CellMusicCallback = void(u32 event, vm::ptr<void> param, vm::ptr<void> userData);
using CellMusic2Callback = void(u32 event, vm::ps3::ptr<void> param, vm::ps3::ptr<void> userData); using CellMusic2Callback = void(u32 event, vm::ptr<void> param, vm::ptr<void> userData);
struct CellMusicSelectionContext struct CellMusicSelectionContext
{ {

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellMusicDecode("cellMusicDecode"); logs::channel cellMusicDecode("cellMusicDecode");

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellMusicExport("cellMusicExport"); logs::channel cellMusicExport("cellMusicExport");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum CellNetCtlError : u32 enum CellNetCtlError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
//error codes //error codes
enum enum

View file

@ -2,7 +2,7 @@
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_spu.h" #include "Emu/Cell/lv2/sys_spu.h"
namespace vm { using namespace ps3; }
logs::channel cellOvis("cellOvis"); logs::channel cellOvis("cellOvis");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
enum enum
{ {

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellPhotoDecode("cellPhotoDecode"); logs::channel cellPhotoDecode("cellPhotoDecode");

View file

@ -2,7 +2,7 @@
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "cellSysutil.h" #include "cellSysutil.h"
namespace vm { using namespace ps3; }
logs::channel cellPhotoExport("cellPhotoExport"); logs::channel cellPhotoExport("cellPhotoExport");

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellPhotoImportUtil("cellPhotoImportUtil"); logs::channel cellPhotoImportUtil("cellPhotoImportUtil");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
enum CellPngTxtType : s32 enum CellPngTxtType : s32
{ {

View file

@ -1,5 +1,5 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
#include "cellPng.h" #include "cellPng.h"

View file

@ -3,7 +3,7 @@
#include "Emu/IdManager.h" #include "Emu/IdManager.h"
#include "cellSysutil.h" #include "cellSysutil.h"
namespace vm { using namespace ps3; }
logs::channel cellRec("cellRec"); logs::channel cellRec("cellRec");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
enum enum
{ {

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -2,7 +2,7 @@
#include "cellVpost.h" #include "cellVpost.h"
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return codes // Return codes
enum enum

View file

@ -4,7 +4,7 @@
#include "cellScreenshot.h" #include "cellScreenshot.h"
namespace vm { using namespace ps3; }
logs::channel cellScreenshot("cellScreenshot"); logs::channel cellScreenshot("cellScreenshot");

View file

@ -12,7 +12,7 @@ enum
struct CellScreenShotSetParam struct CellScreenShotSetParam
{ {
vm::ps3::bcptr<char> photo_title; vm::bcptr<char> photo_title;
vm::ps3::bcptr<char> game_title; vm::bcptr<char> game_title;
vm::ps3::bcptr<char> game_comment; vm::bcptr<char> game_comment;
}; };

View file

@ -226,7 +226,7 @@ enum CellSearchSharableType : s32
}; };
using CellSearchId = s32; using CellSearchId = s32;
using CellSearchSystemCallback = void(CellSearchEvent event, s32 result, vm::ps3::cptr<void> param, vm::ps3::ptr<void> userData); using CellSearchSystemCallback = void(CellSearchEvent event, s32 result, vm::cptr<void> param, vm::ptr<void> userData);
struct CellSearchContentId struct CellSearchContentId
{ {

View file

@ -3,7 +3,7 @@
#include "cellSpudll.h" #include "cellSpudll.h"
namespace vm { using namespace ps3; }
logs::channel cellSpudll("cellSpudll"); logs::channel cellSpudll("cellSpudll");

View file

@ -17,8 +17,8 @@ struct CellSpudllHandleConfig
be_t<u32> dmaTag; be_t<u32> dmaTag;
be_t<u32> numMaxReferred; be_t<u32> numMaxReferred;
be_t<u32> numMaxDepend; be_t<u32> numMaxDepend;
vm::ps3::bptr<void> unresolvedSymbolValueForFunc; vm::bptr<void> unresolvedSymbolValueForFunc;
vm::ps3::bptr<void> unresolvedSymbolValueForObject; vm::bptr<void> unresolvedSymbolValueForObject;
vm::ps3::bptr<void> unresolvedSymbolValueForOther; vm::bptr<void> unresolvedSymbolValueForOther;
be_t<u32> __reserved__[9]; be_t<u32> __reserved__[9];
}; };

View file

@ -2,7 +2,7 @@
#include "cellSync.h" #include "cellSync.h"
namespace vm { using namespace ps3; }
struct CellSpurs; struct CellSpurs;
struct CellSpursTaskset; struct CellSpursTaskset;

View file

@ -1,3 +1 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }

View file

@ -9,7 +9,7 @@
logs::channel cellSsl("cellSsl"); logs::channel cellSsl("cellSsl");
namespace vm { using namespace ps3; }
enum SpecialCerts { BaltimoreCert = 6, Class3G2V2Cert = 13, ClassSSV4Cert = 15, EntrustNetCert = 18, GTECyberTrustGlobalCert = 23 }; enum SpecialCerts { BaltimoreCert = 6, Class3G2V2Cert = 13, ClassSSV4Cert = 15, EntrustNetCert = 18, GTECyberTrustGlobalCert = 23 };

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
extern logs::channel cellSysutil; extern logs::channel cellSysutil;

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum CellSubDisplayError : u32 enum CellSubDisplayError : u32

View file

@ -2,7 +2,7 @@
#include "Utilities/BitField.h" #include "Utilities/BitField.h"
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum CellSyncError : u32 enum CellSyncError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
typedef void(CellSysconfCallback)(s32 result, vm::ptr<void> userdata); typedef void(CellSysconfCallback)(s32 result, vm::ptr<void> userdata);

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
enum enum
{ {

View file

@ -1,7 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel cellSysutilAp("cellSysutilAp"); logs::channel cellSysutilAp("cellSysutilAp");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum CellSysutilAvc2Error : u32 enum CellSysutilAvc2Error : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return Codes // Return Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum CellUserInfoError : u32 enum CellUserInfoError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -3,7 +3,7 @@
#include "cellSysutil.h" #include "cellSysutil.h"
namespace vm { using namespace ps3; }
logs::channel cellVideoExport("cellVideoExport"); logs::channel cellVideoExport("cellVideoExport");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
#include "Emu/Cell/ErrorCodes.h" #include "Emu/Cell/ErrorCodes.h"

View file

@ -9,27 +9,27 @@ struct CellVideoUploadOption
struct CellVideoUploadParam struct CellVideoUploadParam
{ {
be_t<s32> siteID; be_t<s32> siteID;
vm::ps3::bcptr<char> pFilePath; vm::bcptr<char> pFilePath;
union union
{ {
struct struct
{ {
vm::ps3::bcptr<char> pClientId; vm::bcptr<char> pClientId;
vm::ps3::bcptr<char> pDeveloperKey; vm::bcptr<char> pDeveloperKey;
vm::ps3::bcptr<char> pTitle_UTF8; vm::bcptr<char> pTitle_UTF8;
vm::ps3::bcptr<char> pDescription_UTF8; vm::bcptr<char> pDescription_UTF8;
vm::ps3::bcptr<char> pKeyword_1_UTF8; vm::bcptr<char> pKeyword_1_UTF8;
vm::ps3::bcptr<char> pKeyword_2_UTF8; vm::bcptr<char> pKeyword_2_UTF8;
vm::ps3::bcptr<char> pKeyword_3_UTF8; vm::bcptr<char> pKeyword_3_UTF8;
u8 isPrivate; u8 isPrivate;
u8 rating; u8 rating;
} youtube; } youtube;
} u; } u;
be_t<s32> numOfOption; be_t<s32> numOfOption;
vm::ps3::bptr<CellVideoUploadOption> pOption; vm::bptr<CellVideoUploadOption> pOption;
}; };
using CellVideoUploadCallback = void(s32 status, s32 errorCode, vm::ps3::cptr<char> pResultURL, vm::ps3::ptr<void> userdata); using CellVideoUploadCallback = void(s32 status, s32 errorCode, vm::cptr<char> pResultURL, vm::ptr<void> userdata);
enum enum
{ {

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// libvoice = 0x80310801 - 0x803108ff // libvoice = 0x80310801 - 0x803108ff
// libvoice version 100 // libvoice version 100

View file

@ -5,7 +5,7 @@ extern "C"
#include "libswscale/swscale.h" #include "libswscale/swscale.h"
} }
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -3,7 +3,7 @@
#include "libsynth2.h" #include "libsynth2.h"
namespace vm { using namespace ps3; }
logs::channel libsynth2("libsynth2"); logs::channel libsynth2("libsynth2");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
#include "cellRtc.h" #include "cellRtc.h"

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return codes // Return codes
enum enum

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
#include "cellRtc.h" #include "cellRtc.h"

View file

@ -2,7 +2,7 @@
#include "Emu/System.h" #include "Emu/System.h"
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
namespace vm { using namespace ps3; }
logs::channel sceNpMatchingInt("sceNpMatchingInt"); logs::channel sceNpMatchingInt("sceNpMatchingInt");

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Return codes // Return codes
enum sceNpSnsError : u32 enum sceNpSnsError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
// Error codes // Error codes
enum SceNpTrophyError : u32 enum SceNpTrophyError : u32

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
#include "cellRtc.h" #include "cellRtc.h"

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
namespace vm { using namespace ps3; }
using spu_printf_cb_t = vm::ptr<s32(u32 arg)>; using spu_printf_cb_t = vm::ptr<s32(u32 arg)>;

View file

@ -3,7 +3,7 @@
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/PPUOpcodes.h" #include "Emu/Cell/PPUOpcodes.h"
namespace vm { using namespace ps3; }
logs::channel sys_libc("sys_libc"); logs::channel sys_libc("sys_libc");

View file

@ -4,7 +4,7 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
namespace vm { using namespace ps3; }
extern logs::channel sysPrxForUser; extern logs::channel sysPrxForUser;
@ -37,7 +37,7 @@ struct ps3_fmt_src
std::size_t fmt_string(std::string& out, std::size_t extra) const std::size_t fmt_string(std::string& out, std::size_t extra) const
{ {
const std::size_t start = out.size(); const std::size_t start = out.size();
out += vm::ps3::_ptr<const char>(get<u32>(extra)); out += vm::_ptr<const char>(get<u32>(extra));
return out.size() - start; return out.size() - start;
} }

View file

@ -9,7 +9,7 @@
#include "Emu/Cell/lv2/sys_lwcond.h" #include "Emu/Cell/lv2/sys_lwcond.h"
#include "Emu/Cell/lv2/sys_event_flag.h" #include "Emu/Cell/lv2/sys_event_flag.h"
namespace vm { using namespace ps3; }
// Error Codes // Error Codes
enum enum

View file

@ -2,7 +2,7 @@
#include "Emu/Cell/PPUModule.h" #include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_mmapper.h" #include "Emu/Cell/lv2/sys_mmapper.h"
namespace vm { using namespace ps3; }
extern logs::channel sysPrxForUser; extern logs::channel sysPrxForUser;

View file

@ -4,7 +4,7 @@
#include "sys_net_.h" #include "sys_net_.h"
namespace vm { using namespace ps3; }
logs::channel libnet("libnet"); logs::channel libnet("libnet");

View file

@ -35,7 +35,7 @@ struct sys_net_sockinfo_ex_t
struct sys_net_initialize_parameter_t struct sys_net_initialize_parameter_t
{ {
vm::ps3::bptr<void> memory; vm::bptr<void> memory;
be_t<s32> memory_size; be_t<s32> memory_size;
be_t<s32> flags; be_t<s32> flags;
}; };

View file

@ -7,7 +7,7 @@
#include "yaml-cpp/yaml.h" #include "yaml-cpp/yaml.h"
namespace vm { using namespace ps3; }
const ppu_decoder<ppu_itype> s_ppu_itype; const ppu_decoder<ppu_itype> s_ppu_itype;

View file

@ -64,7 +64,7 @@ namespace ppu_cb_detail
{ {
const s64 stack_pos = (g_count - 1) * 0x8 + 0x30 - FIXED_STACK_FRAME_SIZE; const s64 stack_pos = (g_count - 1) * 0x8 + 0x30 - FIXED_STACK_FRAME_SIZE;
static_assert(stack_pos < 0, "TODO: Increase FIXED_STACK_FRAME_SIZE (arg count limit broken)"); static_assert(stack_pos < 0, "TODO: Increase FIXED_STACK_FRAME_SIZE (arg count limit broken)");
vm::ps3::write64(CPU.gpr[1] + stack_pos, ppu_gpr_cast(arg)); // TODO vm::write64(CPU.gpr[1] + stack_pos, ppu_gpr_cast(arg)); // TODO
} }
}; };
@ -179,7 +179,7 @@ namespace vm
template<typename AT, typename RT, typename... T> template<typename AT, typename RT, typename... T>
FORCE_INLINE RT _ptr_base<RT(T...), AT>::operator()(ppu_thread& CPU, T... args) const FORCE_INLINE RT _ptr_base<RT(T...), AT>::operator()(ppu_thread& CPU, T... args) const
{ {
const auto data = vm::ps3::_ptr<u32>(vm::cast(m_addr, HERE)); const auto data = vm::_ptr<u32>(vm::cast(m_addr, HERE));
const u32 pc = data[0]; const u32 pc = data[0];
const u32 rtoc = data[1]; const u32 rtoc = data[1];

View file

@ -303,7 +303,7 @@ extern u64 ppu_ldarx(ppu_thread& ppu, u32 addr);
extern bool ppu_stwcx(ppu_thread& ppu, u32 addr, u32 reg_value); extern bool ppu_stwcx(ppu_thread& ppu, u32 addr, u32 reg_value);
extern bool ppu_stdcx(ppu_thread& ppu, u32 addr, u64 reg_value); extern bool ppu_stdcx(ppu_thread& ppu, u32 addr, u64 reg_value);
namespace vm { using namespace ps3; }
class ppu_scale_table_t class ppu_scale_table_t
{ {

View file

@ -17,7 +17,7 @@
#include <set> #include <set>
#include <algorithm> #include <algorithm>
namespace vm { using namespace ps3; }
extern void ppu_initialize_syscalls(); extern void ppu_initialize_syscalls();
extern std::string ppu_get_function_name(const std::string& module, u32 fnid); extern std::string ppu_get_function_name(const std::string& module, u32 fnid);
@ -269,8 +269,8 @@ static void ppu_initialize_modules(const std::shared_ptr<ppu_linkage_info>& link
for (u32 addr = ppu_function_manager::addr, index = 0; index < hle_funcs.size(); addr += 8, index++) for (u32 addr = ppu_function_manager::addr, index = 0; index < hle_funcs.size(); addr += 8, index++)
{ {
// Function address = current address, RTOC = BLR instruction for the interpreter // Function address = current address, RTOC = BLR instruction for the interpreter
vm::ps3::write32(addr + 0, addr); vm::write32(addr + 0, addr);
vm::ps3::write32(addr + 4, ppu_instructions::BLR()); vm::write32(addr + 4, ppu_instructions::BLR());
// Register the HLE function directly // Register the HLE function directly
ppu_register_function_at(addr + 0, 4, hle_funcs[index]); ppu_register_function_at(addr + 0, 4, hle_funcs[index]);
@ -1129,7 +1129,7 @@ void ppu_load_exec(const ppu_exec_object& elf)
//be_t<u32> crash_dump_param_addr; //be_t<u32> crash_dump_param_addr;
}; };
const auto& info = vm::ps3::_ref<process_param_t>(vm::cast(prog.p_vaddr, HERE)); const auto& info = vm::_ref<process_param_t>(vm::cast(prog.p_vaddr, HERE));
if (info.size < sizeof(process_param_t)) if (info.size < sizeof(process_param_t))
{ {

Some files were not shown because too many files have changed in this diff Show more