mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-03 11:13:54 +00:00
force ankerl + fixup for OO with prelude commits
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
|
||||||
|
index ed7706a..51b520d 100644
|
||||||
|
--- a/xbyak/xbyak.h
|
||||||
|
+++ b/xbyak/xbyak.h
|
||||||
|
@@ -37,6 +37,7 @@
|
||||||
|
#define XBYAK_GNUC_PREREQ(major, minor) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(XBYAK_STD_UNORDERED_SET)
|
||||||
|
// This covers -std=(gnu|c)++(0x|11|1y), -stdlib=libc++, and modern Microsoft.
|
||||||
|
#if ((defined(_MSC_VER) && (_MSC_VER >= 1600)) || defined(_LIBCPP_VERSION) ||\
|
||||||
|
((__cplusplus >= 201103) || defined(__GXX_EXPERIMENTAL_CXX0X__)))
|
||||||
|
@@ -71,6 +72,8 @@
|
||||||
|
#define XBYAK_STD_UNORDERED_MAP std::map
|
||||||
|
#define XBYAK_STD_UNORDERED_MULTIMAP std::multimap
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifdef _WIN32
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
|
||||||
|
index ed7706a..51b520d 100644
|
||||||
|
--- a/xbyak/xbyak.h
|
||||||
|
+++ b/xbyak/xbyak.h
|
||||||
|
@@ -37,6 +37,7 @@
|
||||||
|
#define XBYAK_GNUC_PREREQ(major, minor) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if !defined(XBYAK_STD_UNORDERED_SET)
|
||||||
|
// This covers -std=(gnu|c)++(0x|11|1y), -stdlib=libc++, and modern Microsoft.
|
||||||
|
#if ((defined(_MSC_VER) && (_MSC_VER >= 1600)) || defined(_LIBCPP_VERSION) ||\
|
||||||
|
((__cplusplus >= 201103) || defined(__GXX_EXPERIMENTAL_CXX0X__)))
|
||||||
|
@@ -71,6 +72,8 @@
|
||||||
|
#define XBYAK_STD_UNORDERED_MAP std::map
|
||||||
|
#define XBYAK_STD_UNORDERED_MULTIMAP std::multimap
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifdef _WIN32
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
@@ -200,7 +200,7 @@ void ArmDynarmic32::MakeJit(Common::PageTable* page_table) {
|
|||||||
|
|
||||||
// Code cache size
|
// Code cache size
|
||||||
#if defined(__OPENORBIS__)
|
#if defined(__OPENORBIS__)
|
||||||
config.code_cache_size = std::uint32_t(8_MiB);
|
config.code_cache_size = std::uint32_t(32_MiB);
|
||||||
#elif defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
#elif defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
||||||
config.code_cache_size = std::uint32_t(128_MiB);
|
config.code_cache_size = std::uint32_t(128_MiB);
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ void ArmDynarmic64::MakeJit(Common::PageTable* page_table, std::size_t address_s
|
|||||||
|
|
||||||
// Code cache size
|
// Code cache size
|
||||||
#if defined(__OPENORBIS__)
|
#if defined(__OPENORBIS__)
|
||||||
config.code_cache_size = std::uint32_t(8_MiB);
|
config.code_cache_size = std::uint32_t(32_MiB);
|
||||||
#elif defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
#elif defined(ARCHITECTURE_arm64) || defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
||||||
config.code_cache_size = std::uint32_t(128_MiB);
|
config.code_cache_size = std::uint32_t(128_MiB);
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -58,8 +58,13 @@ const std::array<Xbyak::Reg64, ABI_PARAM_COUNT> BlockOfCode::ABI_PARAMS = {Block
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
#ifdef __OPENORBIS__
|
||||||
|
constexpr size_t CONSTANT_POOL_SIZE = 8 * 4096;
|
||||||
|
constexpr size_t PRELUDE_COMMIT_SIZE = 8 * 4096;
|
||||||
|
#else
|
||||||
constexpr size_t CONSTANT_POOL_SIZE = 2 * 1024 * 1024;
|
constexpr size_t CONSTANT_POOL_SIZE = 2 * 1024 * 1024;
|
||||||
constexpr size_t PRELUDE_COMMIT_SIZE = 16 * 1024 * 1024;
|
constexpr size_t PRELUDE_COMMIT_SIZE = 16 * 1024 * 1024;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT
|
#ifdef DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT
|
||||||
void ProtectMemory(const void* base, size_t size, bool is_executable) {
|
void ProtectMemory(const void* base, size_t size, bool is_executable) {
|
||||||
@@ -466,8 +471,12 @@ size_t BlockOfCode::GetTotalCodeSize() const {
|
|||||||
|
|
||||||
void* BlockOfCode::AllocateFromCodeSpace(size_t alloc_size) {
|
void* BlockOfCode::AllocateFromCodeSpace(size_t alloc_size) {
|
||||||
if (size_ + alloc_size >= maxSize_) {
|
if (size_ + alloc_size >= maxSize_) {
|
||||||
|
#ifndef XBYAK_NO_EXCEPTION
|
||||||
using Xbyak::Error;
|
using Xbyak::Error;
|
||||||
XBYAK_THROW(Xbyak::ERR_CODE_IS_TOO_BIG);
|
XBYAK_THROW(Xbyak::ERR_CODE_IS_TOO_BIG);
|
||||||
|
#else
|
||||||
|
std::abort();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
EnsureMemoryCommitted(alloc_size);
|
EnsureMemoryCommitted(alloc_size);
|
||||||
|
|||||||
Reference in New Issue
Block a user