| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/ |
| D | ICPUWithHooks.cs | 14 void AddHookAtInterruptBegin(Action<ulong> hook); in AddHookAtInterruptBegin() argument 15 void AddHookAtInterruptEnd(Action<ulong> hook); in AddHookAtInterruptEnd() argument 16 void AddHookAtWfiStateChange(Action<bool> hook); in AddHookAtWfiStateChange() argument 18 void AddHook(ulong addr, Action<ICpuSupportingGdb, ulong> hook); in AddHook() argument 19 void RemoveHook(ulong addr, Action<ICpuSupportingGdb, ulong> hook); in RemoveHook() argument
|
| D | ICPUWithMemoryAccessHooks.cs | 16 void SetHookAtMemoryAccess(Action<ulong, MemoryOperation, ulong, ulong, ulong> hook); in SetHookAtMemoryAccess() argument
|
| D | ICPUWithOpcodeHooks.cs | 13 void AddPostOpcodeExecutionHook(UInt64 mask, UInt64 value, Action<ulong> hook); in AddPostOpcodeExecutionHook() argument
|
| D | ICPUWithExternalMmu.cs | 22 void AddHookOnMmuFault(Action<ulong, AccessType, int> hook); in AddHookOnMmuFault() argument
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/ |
| D | UartHooksExtensions.cs | 17 … public static void AddCharHook(this IUART uart, Func<byte, bool> predicate, Action<byte> hook) in AddCharHook() argument 23 hook(x); in AddCharHook() 28 … public static void AddLineHook(this IUART uart, Func<string, bool> predicate, Action<string> hook) in AddLineHook() argument 37 hook(currentLine); in AddLineHook()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/GDB/Commands/ |
| D | BreakpointCommand.cs | 136 …oid AddWatchpointsCoveringMemoryArea(ulong address, uint kind, Access access, BusHookDelegate hook) in AddWatchpointsCoveringMemoryArea() argument 140 foreach(var descriptor in CalculateAllCoveringAddressess(address, kind, access, hook)) in AddWatchpointsCoveringMemoryArea() 151 … manager.Machine.SystemBus.AddWatchpointHook(descriptor.Address, descriptor.Width, access, hook); in AddWatchpointsCoveringMemoryArea() 157 … RemoveWatchpointsCoveringMemoryArea(ulong address, uint kind, Access access, BusHookDelegate hook) in RemoveWatchpointsCoveringMemoryArea() argument 161 foreach(var descriptor in CalculateAllCoveringAddressess(address, kind, access, hook)) in RemoveWatchpointsCoveringMemoryArea() 172 manager.Machine.SystemBus.RemoveWatchpointHook(descriptor.Address, hook); in RemoveWatchpointsCoveringMemoryArea() 178 …ptor> CalculateAllCoveringAddressess(ulong address, uint kind, Access access, BusHookDelegate hook) in CalculateAllCoveringAddressess() argument 184 … yield return new WatchpointDescriptor(address - (ulong)(-offset), width, access, hook); in CalculateAllCoveringAddressess() 193 …c WatchpointDescriptor(ulong address, SysbusAccessWidth width, Access access, BusHookDelegate hook) in WatchpointDescriptor() argument 198 Hook = hook; in WatchpointDescriptor()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Structure/Registers/ |
| D | RegisterCollection.cs | 262 public void AddBeforeReadHook(long offset, Func<long, T?> hook) in AddBeforeReadHook() argument 268 beforeReadHooks.Add(offset, hook); in AddBeforeReadHook() 280 public void AddAfterReadHook(long offset, Func<long, T, T?> hook) in AddAfterReadHook() argument 286 afterReadHooks.Add(offset, hook); in AddAfterReadHook() 298 public void AddBeforeWriteHook(long offset, Func<long, T, T?> hook) in AddBeforeWriteHook() argument 304 beforeWriteHooks.Add(offset, hook); in AddBeforeWriteHook() 314 public void AddAfterWriteHook(long offset, Action<long, T> hook) in AddAfterWriteHook() argument 320 afterWriteHooks.Add(offset, hook); in AddAfterWriteHook() 471 void AddBeforeReadHook(long offset, Func<long, T?> hook); in AddBeforeReadHook() argument 472 void AddAfterReadHook(long offset, Func<long, T, T?> hook); in AddAfterReadHook() argument [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/ |
| D | SystemBusGenerated.cs | 484 …public void SetHookAfterPeripheralRead<T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range?… in SetHookAfterPeripheralRead() argument 501 if(hook != null) in SetHookAfterPeripheralRead() 503 …ipheral, new Func<long, byte>(pam.ReadByte), (Func<byte, long, byte>)(object)hook, subrange).Read); in SetHookAfterPeripheralRead() 520 if(hook != null) in SetHookAfterPeripheralRead() 522 …l, new Func<long, ushort>(pam.ReadWord), (Func<ushort, long, ushort>)(object)hook, subrange).Read); in SetHookAfterPeripheralRead() 539 if(hook != null) in SetHookAfterPeripheralRead() 541 …l, new Func<long, uint>(pam.ReadDoubleWord), (Func<uint, long, uint>)(object)hook, subrange).Read); in SetHookAfterPeripheralRead() 558 if(hook != null) in SetHookAfterPeripheralRead() 560 …, new Func<long, ulong>(pam.ReadQuadWord), (Func<ulong, long, ulong>)(object)hook, subrange).Read); in SetHookAfterPeripheralRead() 574 …tHookBeforePeripheralWrite<T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range? subrange = … in SetHookBeforePeripheralWrite() argument [all …]
|
| D | BusControllerProxy.cs | 250 …void AddWatchpointHook(ulong address, SysbusAccessWidth width, Access access, BusHookDelegate hook) in AddWatchpointHook() argument 252 ParentController.AddWatchpointHook(address, width, access, hook); in AddWatchpointHook() 255 …SetHookAfterPeripheralRead<T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range? subrange = … in SetHookAfterPeripheralRead() argument 257 ParentController.SetHookAfterPeripheralRead(peripheral, hook, subrange); in SetHookAfterPeripheralRead() 260 …tHookBeforePeripheralWrite<T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range? subrange = … in SetHookBeforePeripheralWrite() argument 262 ParentController.SetHookBeforePeripheralWrite(peripheral, hook, subrange); in SetHookBeforePeripheralWrite() 270 public virtual void RemoveWatchpointHook(ulong address, BusHookDelegate hook) in RemoveWatchpointHook() argument 272 ParentController.RemoveWatchpointHook(address, hook); in RemoveWatchpointHook()
|
| D | IBusController.cs | 78 …oid AddWatchpointHook(ulong address, SysbusAccessWidth width, Access access, BusHookDelegate hook); in AddWatchpointHook() argument 79 void RemoveWatchpointHook(ulong address, BusHookDelegate hook); in RemoveWatchpointHook() argument 83 …void SetHookAfterPeripheralRead<T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range? subran… in SetHookAfterPeripheralRead() argument 84 …void SetHookBeforePeripheralWrite<T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range? subr… in SetHookBeforePeripheralWrite() argument
|
| D | SystemBusGenerated.tt | 174 …#>Peripheral<#=operation#><T>(IBusPeripheral peripheral, Func<T, long, T> hook, Range? subrange = … 178 …throw new RecoverableException(string.Format("Cannot set hook on peripheral {0}, it is not registe… 197 if(hook != null) 199 …>(pam.<#=operation#><#=name#>), (Func<<#=type#>, long, <#=type#>>)(object)hook, subrange).<#=opera…
|
| D | SystemBus.cs | 893 …void AddWatchpointHook(ulong address, SysbusAccessWidth width, Access access, BusHookDelegate hook) in AddWatchpointHook() argument 904 var handler = new BusHookHandler(hook, width); in AddWatchpointHook() 930 public void RemoveWatchpointHook(ulong address, BusHookDelegate hook) in RemoveWatchpointHook() argument 937 handlers.RemoveAll(x => x.ContainsAction(hook)); in RemoveWatchpointHook()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/ |
| D | GPIO.cs | 123 public void AddStateChangedHook(Action<bool> hook) in AddStateChangedHook() argument 125 stateChangedHook += hook; in AddStateChangedHook() 128 public void RemoveStateChangedHook(Action<bool> hook) in RemoveStateChangedHook() argument 130 stateChangedHook -= hook; in RemoveStateChangedHook()
|
| D | IGPIOWithHooks.cs | 14 void AddStateChangedHook(Action<bool> hook); in AddStateChangedHook() argument 15 void RemoveStateChangedHook(Action<bool> hook); in RemoveStateChangedHook() argument
|
| D | Machine.cs | 942 public void AddUserStateHook(Func<string, bool> predicate, Action<string> hook) in AddUserStateHook() argument 948 hook(currentState); in AddUserStateHook()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ |
| D | TranslationCPU.cs | 506 public void SetHookAtBlockBegin(Action<ulong, uint> hook) in SetHookAtBlockBegin() argument 510 if((hook == null) ^ (blockBeginUserHook == null)) in SetHookAtBlockBegin() 514 blockBeginUserHook = hook; in SetHookAtBlockBegin() 519 public void SetHookAtBlockEnd(Action<ulong, uint> hook) in SetHookAtBlockEnd() argument 523 if((hook == null) ^ (blockFinishedHook == null)) in SetHookAtBlockEnd() 526 TlibSetBlockFinishedHookPresent(hook != null ? 1u : 0u); in SetHookAtBlockEnd() 528 blockFinishedHook = hook; in SetHookAtBlockEnd() 532 public void SetHookAtMemoryAccess(Action<ulong, MemoryOperation, ulong, ulong, ulong> hook) in SetHookAtMemoryAccess() argument 534 TlibOnMemoryAccessEventEnabled(hook != null ? 1 : 0); in SetHookAtMemoryAccess() 535 memoryAccessHook = hook; in SetHookAtMemoryAccess() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Wireless/ |
| D | WirelessMedium.cs | 79 public void AttachHookToRadio(IRadio radio, Action<byte[]> hook) in AttachHookToRadio() argument 81 radioHooks[radio] = hook; in AttachHookToRadio() 131 if(radioHooks.TryGetValue(receiver, out var hook)) in FrameSentHandler() 133 hook(packetCopy); in FrameSentHandler()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/Arm/ |
| D | Arm.cs | 318 Action<IMachine, MachineStateChangedEventArgs> hook = null; in RegisterTCMRegion() 319 hook = (_, args) => in RegisterTCMRegion() 329 machine.StateChanged -= hook; in RegisterTCMRegion() 331 machine.StateChanged += hook; in RegisterTCMRegion()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/MSP430X/ |
| D | MSP430X.cs | 80 public void AddHookAtInterruptBegin(Action<ulong> hook) in AddHookAtInterruptBegin() argument 85 public void AddHookAtInterruptEnd(Action<ulong> hook) in AddHookAtInterruptEnd() argument 90 public void AddHookAtWfiStateChange(Action<bool> hook) in AddHookAtWfiStateChange() argument 95 public void AddHook(ulong addr, Action<ICpuSupportingGdb, ulong> hook) in AddHook() argument 101 hooks[addr].Add(hook); in AddHook() 104 public void RemoveHook(ulong addr, Action<ICpuSupportingGdb, ulong> hook) in RemoveHook() argument 111 hooks[addr].Remove(hook); in RemoveHook() 272 foreach(var hook in hooks[PC.RawValue]) in ExecutionFinished() 274 hook(this, PC.RawValue); in ExecutionFinished() 287 foreach(var hook in watchpoints) in TryHandleWatchpoints() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/ |
| D | STM32L0_FlashController.cs | 313 Action<ulong, MemoryOperation, ulong, ulong, ulong> hook = EraseMemoryAccessHook; in SetEraseMode() 314 cpu.SetHookAtMemoryAccess(enabled ? hook : null); in SetEraseMode()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/ |
| D | IMachine.cs | 23 void AddUserStateHook(Func<string, bool> predicate, Action<string> hook); in AddUserStateHook() argument
|