Fix Read/Write function signatures for Renode There has been a change to the Read/WriteBytes signatures in the recent Renode versions.
diff --git a/mpact/sim/util/renode/renode_cs/MpactCPU.cs b/mpact/sim/util/renode/renode_cs/MpactCPU.cs index 098f4ec..8e44d8b 100644 --- a/mpact/sim/util/renode/renode_cs/MpactCPU.cs +++ b/mpact/sim/util/renode/renode_cs/MpactCPU.cs
@@ -551,7 +551,7 @@ return (ulong) data64[0]; } - public byte[] ReadBytes(long offset, int count, ICPU context = null) { + public byte[] ReadBytes(long offset, int count, IPeripheral context = null) { var bytes = new byte[count]; var byte_array_ptr = Marshal.AllocHGlobal(count); read_memory(mpact_id, (UInt64) offset, byte_array_ptr, count); @@ -561,7 +561,7 @@ } public void WriteBytes(long offset, byte[] array, int startingIndex, - int count, ICPU context = null) { + int count, IPeripheral context = null) { var byte_array_ptr = Marshal.AllocHGlobal(count); Marshal.Copy(array, startingIndex, byte_array_ptr, count); write_memory(mpact_id, (UInt64) offset, byte_array_ptr, count); @@ -785,12 +785,12 @@ return mpact_cpu.ReadQuadWord(address + base_address); } - public byte[] ReadBytes(long offset, int count, ICPU context = null) { + public byte[] ReadBytes(long offset, int count, IPeripheral context = null) { return mpact_cpu.ReadBytes(offset + base_address, count, context); } public void WriteBytes(long offset, byte[] array, int startingIndex, - int count, ICPU context = null) { + int count, IPeripheral context = null) { mpact_cpu.WriteBytes(offset + base_address, array, startingIndex, count, context); }