Merge pull request #10 from antmicro:renode-update-interface PiperOrigin-RevId: 746487798 Change-Id: If24dd90cec280cdb3552fb2dcd4f5d21f7974c55
diff --git a/mpact/sim/util/renode/renode_cs/MpactCPU.cs b/mpact/sim/util/renode/renode_cs/MpactCPU.cs index 3edf57f..4e46507 100644 --- a/mpact/sim/util/renode/renode_cs/MpactCPU.cs +++ b/mpact/sim/util/renode/renode_cs/MpactCPU.cs
@@ -551,8 +551,7 @@ return (ulong) data64[0]; } - public byte[] ReadBytes(long offset, int count, - IPeripheral 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); @@ -786,8 +785,7 @@ return mpact_cpu.ReadQuadWord(address + base_address); } - public byte[] ReadBytes(long offset, int count, - IPeripheral context = null) { + public byte[] ReadBytes(long offset, int count, IPeripheral context = null) { return mpact_cpu.ReadBytes(offset + base_address, count, context); } @@ -807,3 +805,4 @@ } // namespace Antmicro.Renode.Peripherals.MpactCPU +