Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 21 of 21) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/
DICPUWithHooks.cs14 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
DICPUWithMemoryAccessHooks.cs16 void SetHookAtMemoryAccess(Action<ulong, MemoryOperation, ulong, ulong, ulong> hook); in SetHookAtMemoryAccess() argument
DICPUWithOpcodeHooks.cs13 void AddPostOpcodeExecutionHook(UInt64 mask, UInt64 value, Action<ulong> hook); in AddPostOpcodeExecutionHook() argument
DICPUWithExternalMmu.cs22 void AddHookOnMmuFault(Action<ulong, AccessType, int> hook); in AddHookOnMmuFault() argument
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Hooks/
DUartHooksExtensions.cs17 … 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/
DBreakpointCommand.cs136 …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/
DRegisterCollection.cs262 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/
DSystemBusGenerated.cs484 …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 …]
DBusControllerProxy.cs250 …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()
DIBusController.cs78 …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
DSystemBusGenerated.tt174 …#>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…
DSystemBus.cs893 …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/
DGPIO.cs123 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()
DIGPIOWithHooks.cs14 void AddStateChangedHook(Action<bool> hook); in AddStateChangedHook() argument
15 void RemoveStateChangedHook(Action<bool> hook); in RemoveStateChangedHook() argument
DMachine.cs942 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/
DTranslationCPU.cs506 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/
DWirelessMedium.cs79 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/
DArm.cs318 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/
DMSP430X.cs80 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/
DSTM32L0_FlashController.cs313 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/
DIMachine.cs23 void AddUserStateHook(Func<string, bool> predicate, Action<string> hook); in AddUserStateHook() argument