mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Mark code, not data, as executable in lli RemoteTarget simulator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d42bbfe5e
commit
2932284f04
@ -36,13 +36,13 @@ bool RemoteTarget::allocateSpace(size_t Size, unsigned Alignment,
|
||||
|
||||
bool RemoteTarget::loadData(uint64_t Address, const void *Data, size_t Size) {
|
||||
memcpy ((void*)Address, Data, Size);
|
||||
sys::MemoryBlock Mem((void*)Address, Size);
|
||||
sys::Memory::setExecutable(Mem, &ErrorMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RemoteTarget::loadCode(uint64_t Address, const void *Data, size_t Size) {
|
||||
memcpy ((void*)Address, Data, Size);
|
||||
sys::MemoryBlock Mem((void*)Address, Size);
|
||||
sys::Memory::setExecutable(Mem, &ErrorMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user