Fix compilation errors in Dna.Emulation.Unicorn

This commit is contained in:
Duncan Ogilvie
2026-05-02 13:48:02 +02:00
parent e1dd2a0a8a
commit b8870e4cb5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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)