Home
last modified time | relevance | path

Searched refs:memory (Results 1 – 23 of 23) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/
DMemoryDumpExtensions.cs18 …public static void DumpBinary(this IMemory memory, SequencedFilePath fileName, ulong offset = 0, I… in DumpBinary() argument
20 memory.DumpBinary(fileName, offset, (ulong)memory.Size - offset, context); in DumpBinary()
23 …public static void DumpBinary(this IMemory memory, SequencedFilePath fileName, ulong offset, ulong… in DumpBinary() argument
25 AssertArguments(memory, offset, size); in DumpBinary()
34 WriteBinaryMemoryChunk(writer, memory, offset, i, context); in DumpBinary()
39 WriteBinaryMemoryChunk(writer, memory, offset, windows, context, lastChunkSize); in DumpBinary()
48 …public static void DumpHEX(this IMemory memory, SequencedFilePath fileName, ulong offset = 0, ICPU… in DumpHEX() argument
50 memory.DumpHEX(fileName, offset, (ulong)memory.Size - offset, context, addressOption); in DumpHEX()
53 …public static void DumpHEX(this IMemory memory, SequencedFilePath fileName, ulong offset, ulong si… in DumpHEX() argument
55 AssertArguments(memory, offset, size); in DumpHEX()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/PCI/
DPCIeMemory.cs23 this.memory = new uint[size / 4]; in PCIeMemory()
33 Array.Clear(memory, 0, memory.Length); in Reset()
39 if(offset >= memory.Length) in WriteDoubleWordToBar()
41 …out of memory range, at offset 0x{1:X}. Size of memory is 0x{2:X}.", value, offset, memory.Length); in WriteDoubleWordToBar()
44 memory[offset] = value; in WriteDoubleWordToBar()
50 if(offset >= memory.Length) in ReadDoubleWordFromBar()
52 …ng, "Trying to read from offset 0x{0:X}, beyond the memory range 0x{1:X}.", offset, memory.Length); in ReadDoubleWordFromBar()
55 return memory[offset]; in ReadDoubleWordFromBar()
58 private uint[] memory; field in Antmicro.Renode.Peripherals.PCI.PCIeMemory
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/SiLabs/
DEFR32xG2_LockbitsData.cs57 memory = new byte[size]; in EFR32xG2_LockbitsData()
60 memory[i] = 0xFF; in EFR32xG2_LockbitsData()
135 memory[(uint)DataOffset.ThreadJoinKey + 32] = threadJoinKeyLength; in EFR32xG2_LockbitsData()
174 uint ret = (memory[offset] in ReadDoubleWord()
175 | ((uint)memory[offset + 1] << 8) in ReadDoubleWord()
176 | ((uint)memory[offset + 2] << 16) in ReadDoubleWord()
177 | ((uint)memory[offset + 3] << 24)); in ReadDoubleWord()
189 memory[offset] = (byte)(value & 0xFF); in WriteDoubleWord()
190 memory[offset + 1] = (byte)((value >> 8) & 0xFF); in WriteDoubleWord()
191 memory[offset + 2] = (byte)((value >> 16) & 0xFF); in WriteDoubleWord()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/Disassembler/
DLLVMDisassembler.cs37 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
39 … return GetDisassembler(flags).TryDecodeInstruction(pc, memory, flags, out opcode, memoryOffset); in TryDecodeInstruction()
42 public int DisassembleBlock(ulong pc, byte[] memory, uint flags, out string text) in DisassembleBlock() argument
47 while(sofar < (int)memory.Length) in DisassembleBlock()
49 … if(!TryDisassembleInstruction(pc, memory, flags, out var result, memoryOffset: sofar)) in DisassembleBlock()
185 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
187 if(!TryDisassembleInstruction(pc, memory, flags, out var result, memoryOffset)) in TryDecodeInstruction()
277 …public bool TryDisassembleInstruction(ulong pc, byte[] memory, uint flags, out DisassemblyResult r… in TryDisassembleInstruction() argument
348 …return underlyingDisassembler.TryDisassembleInstruction(pc, memory, flags, out result, memoryOffse… in TryDisassembleInstruction()
352 …public bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memor… in TryDecodeInstruction() argument
[all …]
DIDisassembler.cs14 …bool TryDisassembleInstruction(ulong pc, byte[] memory, uint flags, out DisassemblyResult result, … in TryDisassembleInstruction() argument
15 …bool TryDecodeInstruction(ulong pc, byte[] memory, uint flags, out byte[] opcode, int memoryOffset… in TryDecodeInstruction() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I3C/
DCaliptra_I3C_generated.cs2564 private byte[] memory; field in Antmicro.Renode.Peripherals.I3C.Caliptra_I3C.Dat_DatMemoryContainer
2579 return new Dat_DatMemoryWrapper(memory, index * 8);
2585 memory = new byte[Size]; in Dat_DatMemoryContainer()
2590 …return (uint)memory[offset] + ((uint)memory[offset + 1] << 8) + ((uint)memory[offset + 2] << 16) +… in ReadDoubleWord()
2595 memory[offset] = (byte)value; in WriteDoubleWord()
2596 memory[offset + 1] = (byte)(value >> 8); in WriteDoubleWord()
2597 memory[offset + 2] = (byte)(value >> 16); in WriteDoubleWord()
2598 memory[offset + 3] = (byte)(value >> 24); in WriteDoubleWord()
2604 private byte[] memory; field in Antmicro.Renode.Peripherals.I3C.Caliptra_I3C.Dat_DatMemoryContainer.Dat_DatMemoryWrapper
2611 temp = (byte)(temp | (byte)(memory[spanBegin + 0] & 0x7f));
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/
DMB85RC1MT.cs66 memory[address] = data[i]; in Write()
81 for(int i = 0; i < count && address < memory.Length; i++) in Read()
83 buf[i] = memory[address]; in Read()
97 address = (uint)((address + 1) % memory.Length); in IncreaseAddress()
100 private readonly byte[] memory = new byte[8 * 128 * 1 << 10]; field in Antmicro.Renode.Peripherals.I2C.MB85RC1MT
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Video/
DLiteX_Framebuffer_CSR32.cs19 …public LiteX_Framebuffer_CSR32(IMachine machine, PixelFormat format, IBusPeripheral memory, uint o… in LiteX_Framebuffer_CSR32() argument
21 this.memory = memory; in LiteX_Framebuffer_CSR32()
84 … var memoryBase = (uint)sysbus.GetRegistrationPoints(memory).First().Range.StartAddress; in DefineDMARegisters()
119 private readonly IBusPeripheral memory; field in Antmicro.Renode.Peripherals.Video.LiteX_Framebuffer_CSR32
DLiteX_Framebuffer.cs22 …public LiteX_Framebuffer(IMachine machine, PixelFormat format, IBusPeripheral memory) : base(machi… in LiteX_Framebuffer() argument
24 this.memory = memory; in LiteX_Framebuffer()
83 … var memoryBase = (uint)sysbus.GetRegistrationPoints(memory).First().Range.StartAddress; in DefineRegisters()
105 private readonly IBusPeripheral memory; field in Antmicro.Renode.Peripherals.Video.LiteX_Framebuffer
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DNPCX_Flash.cs22 public NPCX_Flash(MappedMemory memory) in NPCX_Flash() argument
24 this.memory = memory; in NPCX_Flash()
94 memory.SetRange(address, 64.KB(), 0xFF); in Transmit()
123 memory.WriteByte(temporaryAddress, data); in Transmit()
224 return new Range(0x0, (ulong)memory.Size);
264 private readonly MappedMemory memory; field in Antmicro.Renode.Peripherals.SPI.NPCX_Flash
DAmbiqApollo4_IOMaster.cs920 return memory[index]; in DirectGet()
929 memory[index] = value; in DirectSet()
946 builder.AppendFormat("0x{0:X8} ", memory[index % DoubleWordCapacity]); in ToString()
957 memory[headIndex] = 0x0; in TryAdvancePointer()
970 value = memory[headIndex]; in TryPeek()
1044 memory[i] = 0x0; in ClearMemory()
1056 memory[tailIndex] = value; in Push()
1087 private readonly uint[] memory = new uint[DoubleWordCapacity]; field in Antmicro.Renode.Peripherals.SPI.AmbiqApollo4_IOMaster.Fifo
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/TAPHelper/
DTAPTools.cs106 var memory = new byte[IFR_SIZE]; in Open_TUNTAP()
107 Array.Clear(memory, 0, IFR_SIZE); in Open_TUNTAP()
110 Array.Copy(bytes, 0, memory, IFNAMSIZ, 2); in Open_TUNTAP()
119 Array.Copy(devBytes, memory, Math.Min(devBytes.Length, IFNAMSIZ)); in Open_TUNTAP()
122 Marshal.Copy(memory, 0, ifr, IFR_SIZE); in Open_TUNTAP()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DMemoryTests.cs25 var memory = new MappedMemory(machine, MemorySize); in ShouldReadWriteMemoryBiggerThan2GB()
27 machine.SystemBus.Register(memory, start); in ShouldReadWriteMemoryBiggerThan2GB()
DSerializationTests.cs61 using(var memory = new MappedMemory(null, size)) in ShouldSerializeMemory()
65 memory.WriteBytes(buf.Item1, buf.Item2); in ShouldSerializeMemory()
67 serializer.Serialize(memory, stream); in ShouldSerializeMemory()
71 using(var memory = serializer.Deserialize<MappedMemory>(stream)) in ShouldSerializeMemory()
75 var bufCopy = memory.ReadBytes(buf.Item1, bufSize); in ShouldSerializeMemory()
DSystemBusTests.cs401 var memory = new MappedMemory(machine, 16); in CreateMachineAndExecute()
402 sb.Register(memory, 0.By(16)); in CreateMachineAndExecute()
403 sb.Register(memory, 0xC0000000.By(16)); in CreateMachineAndExecute()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm/
DTCMConfiguration.cs24 …bool TryFindRegistrationAddress(IBusController sysbus, ICPU cpu, IMemory memory, out ulong address) in TryFindRegistrationAddress() argument
27 var busRegistration = ((SystemBus)sysbus).GetRegistrationPoints(memory, cpu) in TryFindRegistrationAddress()
DArm.cs316 public void RegisterTCMRegion(IMemory memory, uint interfaceIndex, uint regionIndex) in RegisterTCMRegion() argument
325 if(!TryRegisterTCMRegion(memory, interfaceIndex, regionIndex)) in RegisterTCMRegion()
327 …t {2} is not registered for this cpu.", interfaceIndex, regionIndex, machine.GetLocalName(memory)); in RegisterTCMRegion()
382 private bool TryRegisterTCMRegion(IMemory memory, uint interfaceIndex, uint regionIndex) in TryRegisterTCMRegion() argument
385 …MConfiguration.TryFindRegistrationAddress((SystemBus)machine.SystemBus, this, memory, out address)) in TryRegisterTCMRegion()
390 …var config = new TCMConfiguration(checked((uint)address), checked((ulong)memory.Size), regionIndex… in TryRegisterTCMRegion()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm64/
DARMv8R.cs133 public void RegisterTCMRegion(IMemory memory, uint regionIndex) in RegisterTCMRegion() argument
139 if(!TryRegisterTCMRegion(memory, regionIndex)) in RegisterTCMRegion()
141 … region #{0}, but {1} is not registered for this CPU.", regionIndex, machine.GetLocalName(memory)); in RegisterTCMRegion()
157 private bool TryRegisterTCMRegion(IMemory memory, uint regionIndex) in TryRegisterTCMRegion() argument
160 … if(!TCMConfiguration.TryFindRegistrationAddress(machine.SystemBus, this, memory, out address)) in TryRegisterTCMRegion()
165 …var config = new TCMConfiguration(checked((uint)address), checked((ulong)memory.Size), regionIndex… in TryRegisterTCMRegion()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/
DMPFS_eNVM.cs25 public MPFS_eNVM(IMachine machine, MappedMemory memory) in MPFS_eNVM() argument
27 this.memory = memory; in MPFS_eNVM()
227 memory.WriteBytes(offset, valueToWrite); in WriteFlashWithValue()
234 memory.WriteDoubleWord(offset + i * 4, pageLatch[i]); in WriteFlashWithPageLatch()
243 return memory.ReadDoubleWord(offset); in ReadFlashDoubleWord()
389 private readonly MappedMemory memory; field in Antmicro.Renode.Peripherals.MTD.MPFS_eNVM
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/Crypto/
DInternalMemoryManager.cs32 foreach(var memory in coreMemories) in ResetMemories()
34 memory.Value.Reset(); in ResetMemories()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Memory/
DGenericI2cEeprom.cs20 …public GenericI2cEeprom(IMemory memory, int addressBitSize = DefaultAddressBitSize, bool writable … in GenericI2cEeprom() argument
30 Memory = memory; in GenericI2cEeprom()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/
DCC2520.cs47 memory = new byte[GeneralMemorySize]; in Reset()
712 value = memory[address - GeneralMemoryStart]; in ReadMemory()
767 memory[address - GeneralMemoryStart] = value; in WriteMemory()
860 private byte[] memory; field in Antmicro.Renode.Peripherals.Wireless.CC2520
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DSystemBus.cs615 var memory = target.What.Peripheral as MappedMemory; in ReadBytes()
616 if(memory != null) in ReadBytes()
620memory.ReadBytes(checked((long)(target.Offset - target.What.RegistrationPoint.Range.StartAddress +… in ReadBytes()