mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-07 12:48:03 +00:00
fixup w.r.t new dynarm
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dynarmic/backend/x64/block_of_code.h"
|
#include "dynarmic/backend/x64/block_of_code.h"
|
||||||
#include "xbyak/xbyak.h"
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
@@ -447,12 +446,8 @@ 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);
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ struct RunCodeCallbacks {
|
|||||||
|
|
||||||
class BlockOfCode final : public Xbyak::CodeGenerator {
|
class BlockOfCode final : public Xbyak::CodeGenerator {
|
||||||
public:
|
public:
|
||||||
BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp) noexcept;
|
BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_code_size, std::function<void(BlockOfCode&)> rcp);
|
||||||
BlockOfCode(const BlockOfCode&) noexcept = delete;
|
BlockOfCode(const BlockOfCode&) = delete;
|
||||||
|
|
||||||
/// Call when external emitters have finished emitting their preludes.
|
/// Call when external emitters have finished emitting their preludes.
|
||||||
void PreludeComplete();
|
void PreludeComplete();
|
||||||
|
|||||||
Reference in New Issue
Block a user