mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-19 09:57:02 +02:00
fixup shit
This commit is contained in:
parent
a87f44d809
commit
9de03b5528
5 changed files with 16 additions and 27 deletions
6
externals/CMakeLists.txt
vendored
6
externals/CMakeLists.txt
vendored
|
|
@ -263,8 +263,10 @@ target_include_directories(tz PUBLIC ./tz)
|
||||||
add_library(bc_decoder bc_decoder/bc_decoder.cpp)
|
add_library(bc_decoder bc_decoder/bc_decoder.cpp)
|
||||||
target_include_directories(bc_decoder PUBLIC ./bc_decoder)
|
target_include_directories(bc_decoder PUBLIC ./bc_decoder)
|
||||||
|
|
||||||
add_library(ps4sup ps4sup/emutls.c ps4sup/stub.cpp)
|
if (PLATFORM_PS4)
|
||||||
target_include_directories(ps4sup PUBLIC ./ps4sup)
|
add_library(ps4sup ps4sup/emutls.c ps4sup/stub.cpp)
|
||||||
|
target_include_directories(ps4sup PUBLIC ./ps4sup)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT TARGET RenderDoc::API)
|
if (NOT TARGET RenderDoc::API)
|
||||||
add_library(renderdoc INTERFACE)
|
add_library(renderdoc INTERFACE)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
|
@ -29,22 +26,27 @@ public:
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
Common::PhysicalAddress GetPhysicalAddr(const T* ptr) const {
|
Common::PhysicalAddress GetPhysicalAddr(const T* ptr) const {
|
||||||
return (uintptr_t(ptr) - uintptr_t(buffer.BackingBasePointer())) + DramMemoryMap::Base;
|
return (reinterpret_cast<uintptr_t>(ptr) -
|
||||||
|
reinterpret_cast<uintptr_t>(buffer.BackingBasePointer())) +
|
||||||
|
DramMemoryMap::Base;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
PAddr GetRawPhysicalAddr(const T* ptr) const {
|
PAddr GetRawPhysicalAddr(const T* ptr) const {
|
||||||
return PAddr(uintptr_t(ptr) - uintptr_t(buffer.BackingBasePointer()));
|
return static_cast<PAddr>(reinterpret_cast<uintptr_t>(ptr) -
|
||||||
|
reinterpret_cast<uintptr_t>(buffer.BackingBasePointer()));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T* GetPointer(Common::PhysicalAddress addr) {
|
T* GetPointer(Common::PhysicalAddress addr) {
|
||||||
return reinterpret_cast<T*>(buffer.BackingBasePointer() + (GetInteger(addr) - DramMemoryMap::Base));
|
return reinterpret_cast<T*>(buffer.BackingBasePointer() +
|
||||||
|
(GetInteger(addr) - DramMemoryMap::Base));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
const T* GetPointer(Common::PhysicalAddress addr) const {
|
const T* GetPointer(Common::PhysicalAddress addr) const {
|
||||||
return reinterpret_cast<T*>(buffer.BackingBasePointer() + (GetInteger(addr) - DramMemoryMap::Base));
|
return reinterpret_cast<T*>(buffer.BackingBasePointer() +
|
||||||
|
(GetInteger(addr) - DramMemoryMap::Base));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ struct DeviceMemoryManagerAllocator {
|
||||||
|
|
||||||
template <typename Traits>
|
template <typename Traits>
|
||||||
DeviceMemoryManager<Traits>::DeviceMemoryManager(const DeviceMemory& device_memory_)
|
DeviceMemoryManager<Traits>::DeviceMemoryManager(const DeviceMemory& device_memory_)
|
||||||
: physical_base{uintptr_t(device_memory_.buffer.BackingBasePointer())},
|
: physical_base{reinterpret_cast<const uintptr_t>(device_memory_.buffer.BackingBasePointer())},
|
||||||
device_inter{nullptr}, compressed_physical_ptr(device_as_size >> Memory::YUZU_PAGEBITS),
|
device_inter{nullptr}, compressed_physical_ptr(device_as_size >> Memory::YUZU_PAGEBITS),
|
||||||
compressed_device_addr(1ULL << ((Settings::values.memory_layout_mode.GetValue() ==
|
compressed_device_addr(1ULL << ((Settings::values.memory_layout_mode.GetValue() ==
|
||||||
Settings::MemoryLayout::Memory_4Gb
|
Settings::MemoryLayout::Memory_4Gb
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
||||||
|
|
|
||||||
|
|
@ -51,22 +51,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __OPENORBIS__
|
#if defined(_WIN32)
|
||||||
#include <orbis/SystemService.h>
|
|
||||||
#include <cxxabi.h>
|
|
||||||
#include <__thread/support.h>
|
|
||||||
# define STUB_WEAK(name) extern "C" void name() { printf("called " #name); asm volatile("ud2"); }
|
|
||||||
extern "C" void __cxa_thread_atexit_impl() {
|
|
||||||
//printf("atexit called");
|
|
||||||
}
|
|
||||||
STUB_WEAK(__assert)
|
|
||||||
STUB_WEAK(ZSTD_trace_compress_begin)
|
|
||||||
STUB_WEAK(ZSTD_trace_compress_end)
|
|
||||||
STUB_WEAK(ZSTD_trace_decompress_begin)
|
|
||||||
STUB_WEAK(ZSTD_trace_decompress_end)
|
|
||||||
FILE* __stderrp = stdout;
|
|
||||||
# undef STUB_WEAK
|
|
||||||
#elif defined(_WIN32)
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// tells Nvidia and AMD drivers to use the dedicated GPU by default on laptops with switchable
|
// tells Nvidia and AMD drivers to use the dedicated GPU by default on laptops with switchable
|
||||||
// graphics
|
// graphics
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue