mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-29 06:43:17 +00:00
general refactoring and coding format fixes
This commit is contained in:
parent
30c1062893
commit
3e60a67785
8 changed files with 15 additions and 13 deletions
|
@ -7,8 +7,8 @@ constexpr u64 SCE_KERNEL_MAIN_DMEM_SIZE = 5376_MB; // ~ 6GB
|
|||
|
||||
// memory types
|
||||
|
||||
typedef enum : int {
|
||||
enum MemoryTypes : u32 {
|
||||
SCE_KERNEL_WB_ONION = 0, // write - back mode (Onion bus)
|
||||
SCE_KERNEL_WC_GARLIC = 3, // write - combining mode (Garlic bus)
|
||||
SCE_KERNEL_WB_GARLIC = 10 // write - back mode (Garlic bus)
|
||||
} memory_types;
|
||||
};
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
#include <bit>
|
||||
#include <magic_enum.hpp>
|
||||
#include <debug.h>
|
||||
|
||||
#include "../../../../Debug.h"
|
||||
#include <debug.h>
|
||||
#include "../../../../Util/Log.h"
|
||||
#include "../../../../Util/Singleton.h"
|
||||
#include "../ErrorCodes.h"
|
||||
|
@ -42,7 +43,7 @@ int PS4_SYSV_ABI sceKernelAllocateDirectMemory(s64 searchStart, s64 searchEnd, u
|
|||
// TODO debug logging
|
||||
return SCE_KERNEL_ERROR_EINVAL;
|
||||
}
|
||||
auto memtype = magic_enum::enum_cast<memory_types>(memoryType);
|
||||
auto memtype = magic_enum::enum_cast<MemoryTypes>(memoryType);
|
||||
|
||||
LOG_INFO_IF(true, "search_start = {:#018x}\n", searchStart);
|
||||
LOG_INFO_IF(true, "search_end = {:#018x}\n", searchEnd);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <debug.h>
|
||||
#include "ThreadManagement.h"
|
||||
#include "../ErrorCodes.h"
|
||||
#include "../../../../Debug.h"
|
||||
|
||||
namespace HLE::Libs::LibKernel::ThreadManagement
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "LibC.h"
|
||||
#include "Libs.h"
|
||||
#include "../Loader/Elf.h"
|
||||
#include "../../../Debug.h"
|
||||
#include <debug.h>
|
||||
#include <pthread.h>
|
||||
|
||||
namespace HLE::Libs::LibC {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "../Loader/Elf.h"
|
||||
#include "LibKernel.h"
|
||||
#include "Libs.h"
|
||||
#include "../../../Debug.h"
|
||||
#include <debug.h>
|
||||
#include "../../../Util/Log.h"
|
||||
#include "Kernel/MemoryManagement.h"
|
||||
#include "../../../Util/Singleton.h"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "LibSceVideoOut.h"
|
||||
#include "Libs.h"
|
||||
#include "../Loader/Elf.h"
|
||||
#include "../../../Debug.h"
|
||||
#include <debug.h>
|
||||
#include "VideoOut/VideoOutCodes.h"
|
||||
#include "UserManagement/UsrMngCodes.h"
|
||||
#include "../../../Util/Log.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue