Home
last modified time | relevance | path

Searched refs:segment (Results 1 – 18 of 18) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DELFExtensions.cs44 public static ulong GetSegmentAddress(this ISegment segment) in GetSegmentAddress() argument
46 if(segment is Segment<uint> segment32) in GetSegmentAddress()
50 if(segment is Segment<ulong> segment64) in GetSegmentAddress()
58 public static ulong GetSegmentPhysicalAddress(this ISegment segment) in GetSegmentPhysicalAddress() argument
60 if(segment is Segment<uint> segment32) in GetSegmentPhysicalAddress()
64 if(segment is Segment<ulong> segment64) in GetSegmentPhysicalAddress()
72 public static ulong GetSegmentSize(this ISegment segment) in GetSegmentSize() argument
74 if(segment is Segment<uint> segment32) in GetSegmentSize()
78 if(segment is Segment<ulong> segment64) in GetSegmentSize()
DSymbolLookup.cs192 foreach(var segment in segments)
194 …var loadAddress = useVirtualAddress ? segment.GetSegmentAddress() : segment.GetSegmentPhysicalAddr…
196 … maxLoadAddress = SymbolAddress.Max(maxLoadAddress, loadAddress + segment.GetSegmentSize());
DSystemBus.cs844 …public void MapMemory(IMappedSegment segment, IBusPeripheral owner, bool relative = true, ICPUWith… in MapMemory() argument
851 … var wrapper = FromRegistrationPointToSegmentWrapper(segment, registrationPoint, context); in MapMemory()
861 … AddMappings(new [] { new MappedSegmentWrapper(segment, 0, long.MaxValue, context) }, owner); in MapMemory()
2071 …appedSegmentWrapper FromRegistrationPointToSegmentWrapper(IMappedSegment segment, BusRangeRegistra… in FromRegistrationPointToSegmentWrapper() argument
2073 if(segment.StartingOffset >= registrationPoint.Range.Size + registrationPoint.Offset) in FromRegistrationPointToSegmentWrapper()
2078 …var desiredSize = Math.Min(segment.Size, registrationPoint.Range.Size + registrationPoint.Offset -… in FromRegistrationPointToSegmentWrapper()
2079 …return new MappedSegmentWrapper(segment, registrationPoint.Range.StartAddress - registrationPoint.… in FromRegistrationPointToSegmentWrapper()
DBusControllerProxy.cs465 …public virtual void MapMemory(IMappedSegment segment, IBusPeripheral owner, bool relative = true, … in MapMemory() argument
467 ParentController.MapMemory(segment, owner, relative, context); in MapMemory()
DIBusController.cs93 …void MapMemory(IMappedSegment segment, IBusPeripheral owner, bool relative = true, ICPUWithMappedM… in MapMemory() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Memory/
DMappedMemory.cs130 var segment = segments[GetSegmentNo(offset)]; in ReadByte()
131 return Marshal.ReadByte(new IntPtr(segment.ToInt64() + localOffset)); in ReadByte()
143 var segment = segments[GetSegmentNo(offset)]; in WriteByte()
144 Marshal.WriteByte(new IntPtr(segment.ToInt64() + localOffset), value); in WriteByte()
157 var segment = segments[GetSegmentNo(offset)]; in ReadWord()
161 bytes[0] = Marshal.ReadByte(new IntPtr(segment.ToInt64() + localOffset)); in ReadWord()
166 … return unchecked((ushort)Marshal.ReadInt16(new IntPtr(segment.ToInt64() + localOffset))); in ReadWord()
178 var segment = segments[GetSegmentNo(offset)]; in WriteWord()
182 Marshal.WriteByte(new IntPtr(segment.ToInt64() + localOffset), bytes[0]); in WriteWord()
190 … Marshal.WriteInt16(new IntPtr(segment.ToInt64() + localOffset), unchecked((short)value)); in WriteWord()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/Crypto/
DAESServiceProvider.cs25 segment = new byte[SegmentSize]; in AESServiceProvider()
91 segment = new byte[SegmentSize]; in Reset()
99 …var segment = ProcessSegment(keyBytes.Take(SegmentSize).ToArray(), ivBytes, new byte[SegmentSize],… in GetResultBytesCTR()
100 for(var i = 0; i < segment.Length; ++i) in GetResultBytesCTR()
102 segment[i] ^= inputBytes[i]; in GetResultBytesCTR()
104 return segment; in GetResultBytesCTR()
119 inputSegment[j] ^= segment[j]; in GetResultBytesCBC()
122 segment = ProcessSegment(keyBytes, ivBytes, inputSegment, operation); in GetResultBytesCBC()
124 Array.Copy(segment, 0, result, 0, SegmentSize); in GetResultBytesCBC()
128 segment = new byte[SegmentSize]; in GetResultBytesCBC()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DIMappedSegment.cs22 public static Range GetRange(this IMappedSegment segment) in GetRange() argument
24 return new Range(segment.StartingOffset, segment.Size); in GetRange()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DSerializableMappedSegmentTests.cs28 foreach(var segment in segments) in ShouldSerializeWhenNotTouched()
30 Assert.AreEqual(IntPtr.Zero, segment.Pointer); in ShouldSerializeWhenNotTouched()
41 foreach(var segment in segments) in ShouldSerializeWhenTouched()
43 Assert.AreNotEqual(IntPtr.Zero, segment.Pointer); in ShouldSerializeWhenTouched()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/
DSegmentMapping.cs16 public SegmentMapping(IMappedSegment segment) in SegmentMapping() argument
18 Segment = segment; in SegmentMapping()
DTranslationCPU.cs379 public void MapMemory(IMappedSegment segment) in MapMemory() argument
381 …if(segment.StartingOffset > bitness.GetMaxAddress() || segment.StartingOffset + segment.Size - 1 >… in MapMemory()
388 currentMappings.Add(new SegmentMapping(segment)); in MapMemory()
389 mappedMemory.Add(segment.GetRange()); in MapMemory()
390 SetAccessMethod(segment.GetRange(), true); in MapMemory()
392 …this.NoisyLog("Registered memory at 0x{0:X}, size 0x{1:X}.", segment.StartingOffset, segment.Size); in MapMemory()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Crypto/
DPRINCECipher.cs80 var segment = 0ul; in Multiply()
85 segment ^= m[i][j]; in Multiply()
89 state |= segment << (i * 16); in Multiply()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DSevenSegmentsDisplay.cs151 public void SetSegment(Segments segment, bool asOn) in SetSegment() argument
155 Value |= segment; in SetSegment()
159 Value &= ~segment; in SetSegment()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/
DICPUWithMappedMemory.cs16 void MapMemory(IMappedSegment segment); in MapMemory() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/SynopsysDWCEthernetQualityOfService/
DSynopsysDWCEthernetQualityOfService_FrameAssembler.cs97 foreach(var segment in segments.Take(segments.Length + (saveLast ? -1 : 0))) in PushPayload()
99 FinalizeSegment(segment, maximumSegmentSize); in PushPayload()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DOpenTitan_BigNumberAcceleratorCore.cs36 foreach(var segment in instructionsMemory.MappedSegments) in OpenTitan_BigNumberAcceleratorCore()
38 this.MapMemory(segment); in OpenTitan_BigNumberAcceleratorCore()
49 foreach(var segment in dataMemory.MappedSegments) in OpenTitan_BigNumberAcceleratorCore()
51 …var wrappedSegment = new SystemBus.MappedSegmentWrapper(segment, VirtualDataOffset, segment.Size, … in OpenTitan_BigNumberAcceleratorCore()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DGenericSpiFlash.cs633 var segment = new byte[range.Size]; in EraseRangeUnchecked()
636 segment[i] = EmptySegment; in EraseRangeUnchecked()
638 underlyingMemory.WriteBytes((long)range.StartAddress, segment); in EraseRangeUnchecked()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/opcodes/
Dopcodes-rvv19 # Vector Unit-Stride Instructions (including segment part)
40 # Vector Indexed-Unordered Instructions (including segment part)
59 # Vector Strided Instructions (including segment part)
78 # Vector Indexed-Ordered Instructions (including segment part)