mirror of
https://github.com/Colton1skees/Dna
synced 2026-06-21 13:42:09 +00:00
Fix compilation errors in Dna.Emulation.Unicorn
This commit is contained in:
@@ -87,7 +87,7 @@ namespace Dna.Emulation.Unicorn
|
||||
var gdtEntry = CreateGdtEntry(segAddr, segSize, access, F_PROT_32);
|
||||
|
||||
var bytes = BitConverter.GetBytes(gdtEntry);
|
||||
emu.Memory.Write(gdtAddress + 8 * gdtIdx, bytes, (ulong)bytes.Length);
|
||||
emu.Memory.Write(gdtAddress + 8 * gdtIdx, bytes, bytes.Length);
|
||||
|
||||
var selector = CreateSelector(gdtIdx, S_GDT | S_PRIV_0);
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace Dna.Emulation.Unicorn
|
||||
|
||||
public void WriteMemory(ulong addr, byte[] buffer)
|
||||
{
|
||||
Emulator.Memory.Write(addr, buffer, (ulong)buffer.Length);
|
||||
Emulator.Memory.Write(addr, buffer, buffer.Length);
|
||||
}
|
||||
|
||||
public void Start(ulong addr, ulong untilAddr = long.MaxValue)
|
||||
|
||||
Reference in New Issue
Block a user