mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
Reimplement ASMJIT runtime
Try to emplace generated code in lower address area. Protect generated code from writing.
This commit is contained in:
parent
a0d95a823e
commit
3d980a9f66
2 changed files with 69 additions and 4 deletions
|
@ -53,7 +53,7 @@ struct jit_runtime final : asmjit::HostRuntime
|
|||
namespace asmjit
|
||||
{
|
||||
// Should only be used to build global functions
|
||||
asmjit::JitRuntime& get_global_runtime();
|
||||
asmjit::Runtime& get_global_runtime();
|
||||
|
||||
// Emit xbegin and adjacent loop, return label at xbegin
|
||||
[[nodiscard]] asmjit::Label build_transaction_enter(X86Assembler& c, Label fallback, const X86Gp& ctr, uint less_than);
|
||||
|
@ -64,7 +64,7 @@ namespace asmjit
|
|||
|
||||
// Build runtime function with asmjit::X86Assembler
|
||||
template <typename FT, typename F>
|
||||
FT build_function_asm(F&& builder)
|
||||
inline FT build_function_asm(F&& builder)
|
||||
{
|
||||
using namespace asmjit;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue