| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/ |
| D | MemoryDumpExtensions.cs | 18 …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/ |
| D | PCIeMemory.cs | 23 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/ |
| D | EFR32xG2_LockbitsData.cs | 57 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/ |
| D | LLVMDisassembler.cs | 37 …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 …]
|
| D | IDisassembler.cs | 14 …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/ |
| D | Caliptra_I3C_generated.cs | 2564 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/ |
| D | MB85RC1MT.cs | 66 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/ |
| D | LiteX_Framebuffer_CSR32.cs | 19 …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
|
| D | LiteX_Framebuffer.cs | 22 …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/ |
| D | NPCX_Flash.cs | 22 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
|
| D | AmbiqApollo4_IOMaster.cs | 920 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/ |
| D | TAPTools.cs | 106 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/ |
| D | MemoryTests.cs | 25 var memory = new MappedMemory(machine, MemorySize); in ShouldReadWriteMemoryBiggerThan2GB() 27 machine.SystemBus.Register(memory, start); in ShouldReadWriteMemoryBiggerThan2GB()
|
| D | SerializationTests.cs | 61 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()
|
| D | SystemBusTests.cs | 401 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/ |
| D | TCMConfiguration.cs | 24 …bool TryFindRegistrationAddress(IBusController sysbus, ICPU cpu, IMemory memory, out ulong address) in TryFindRegistrationAddress() argument 27 var busRegistration = ((SystemBus)sysbus).GetRegistrationPoints(memory, cpu) in TryFindRegistrationAddress()
|
| D | Arm.cs | 316 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/ |
| D | ARMv8R.cs | 133 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/ |
| D | MPFS_eNVM.cs | 25 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/ |
| D | InternalMemoryManager.cs | 32 foreach(var memory in coreMemories) in ResetMemories() 34 memory.Value.Reset(); in ResetMemories()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Memory/ |
| D | GenericI2cEeprom.cs | 20 …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/ |
| D | CC2520.cs | 47 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/ |
| D | SystemBus.cs | 615 var memory = target.What.Peripheral as MappedMemory; in ReadBytes() 616 if(memory != null) in ReadBytes() 620 …memory.ReadBytes(checked((long)(target.Offset - target.What.RegistrationPoint.Range.StartAddress +… in ReadBytes()
|