x64 JIT: Allocate constant data outside of the guest heap.
This commit is contained in:
@@ -42,7 +42,7 @@ class X64Backend : public Backend {
|
||||
~X64Backend() override;
|
||||
|
||||
X64CodeCache* code_cache() const { return code_cache_.get(); }
|
||||
uint32_t emitter_data() const { return emitter_data_; }
|
||||
uintptr_t emitter_data() const { return emitter_data_; }
|
||||
|
||||
// Call a generated function, saving all stack parameters.
|
||||
HostToGuestThunk host_to_guest_thunk() const { return host_to_guest_thunk_; }
|
||||
@@ -76,8 +76,7 @@ class X64Backend : public Backend {
|
||||
uintptr_t capstone_handle_ = 0;
|
||||
|
||||
std::unique_ptr<X64CodeCache> code_cache_;
|
||||
|
||||
uint32_t emitter_data_;
|
||||
uintptr_t emitter_data_ = 0;
|
||||
|
||||
HostToGuestThunk host_to_guest_thunk_;
|
||||
GuestToHostThunk guest_to_host_thunk_;
|
||||
|
||||
Reference in New Issue
Block a user