Home
last modified time | relevance | path

Searched refs:activeInterrupts (Results 1 – 5 of 5) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/GPIOPort/
DGPIOInterruptManager.cs30 activeInterrupts = new bool[numberOfGpios]; in GPIOInterruptManager()
46 Array.Clear(activeInterrupts, 0, activeInterrupts.Length); in Reset()
58 activeInterrupts[index] = false; in ClearInterrupt()
82 activeInterrupts[i] = currentState; in RefreshInterrupts()
86 activeInterrupts[i] |= currentState; in RefreshInterrupts()
88 irqState |= activeInterrupts[i] && !InterruptMask[i]; in RefreshInterrupts()
93 activeInterrupts[i] = !currentState; in RefreshInterrupts()
97 activeInterrupts[i] |= !currentState; in RefreshInterrupts()
99 irqState |= activeInterrupts[i] && !InterruptMask[i]; in RefreshInterrupts()
105 activeInterrupts[i] = true; in RefreshInterrupts()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/PLIC/
DIrqContext.cs24 activeInterrupts = new Stack<IrqSource>(); in IrqContext()
34 activeInterrupts.Clear(); in Reset()
49 var currentPriority = activeInterrupts.Count > 0 ? activeInterrupts.Peek().Priority : 0; in RefreshInterrupt()
58 if(activeInterrupts.Count == 0) in CompleteHandlingInterrupt()
63 var topActiveInterrupt = activeInterrupts.Pop(); in CompleteHandlingInterrupt()
133 activeInterrupts.Push(pendingIrq); in AcknowledgePendingInterrupt()
153 private readonly Stack<IrqSource> activeInterrupts; field in Antmicro.Renode.Peripherals.IRQControllers.PLIC.IrqContext
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/IRQControllers/
DPL190_VIC.cs30 activeInterrupts = new Collections.PriorityQueue<Interrupt, int>(); in PL190_VIC()
39 activeInterrupts.Clear(); in Reset()
78 while(activeInterrupts.Count > 0 && !activeInterrupts.Peek().IsActive) in ClearInactiveInterrupts()
80 activeInterrupts.Dequeue(); in ClearInactiveInterrupts()
90 lock(activeInterrupts) in UpdateInterrupts()
105 activeInterrupts.Enqueue(interrupts[id], interrupts[id].Priority); in UpdateInterrupts()
114 var irq = activeInterrupts.TryPeek(out var interrupt, out _) && interrupt.IsActive; in RefreshIrqFiqState()
188 lock(activeInterrupts) in DefineRegisters()
191 if(activeInterrupts.TryDequeue(out var interrupt, out var __)) in DefineRegisters()
204 lock(activeInterrupts) in DefineRegisters()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/GPIOPort/
DQuark_GPIOController.cs29 activeInterrupts = new bool[NumberOfGPIOS]; in Quark_GPIOController()
50 activeInterrupts[i] = false; in Reset()
189 activeInterrupts[bit] = false; in PrepareRegisters()
195 …e.Read, valueProviderCallback: _ => BitHelper.GetValueFromBitsArray(activeInterrupts.Zip(Interrupt… in PrepareRegisters()
198 … 32, FieldMode.Read, valueProviderCallback: _ => BitHelper.GetValueFromBitsArray(activeInterrupts)) in PrepareRegisters()
258 activeInterrupts[i] = true; in RefreshInterrupts()
265 activeInterrupts[i] = true; in RefreshInterrupts()
272 activeInterrupts[i] = true; in RefreshInterrupts()
282 else if(!activeInterrupts.Any(x => x)) in RefreshInterrupts()
293 private readonly bool[] activeInterrupts; field in Antmicro.Renode.Peripherals.X86.Quark_GPIOController
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DInterruptManager.cs29 activeInterrupts = new HashSet<TInterrupt>(); in InterruptManager()
120 activeInterrupts.Clear(); in Reset()
269 activeInterrupts.Add(interrupt); in SetInterrupt()
273 activeInterrupts.Remove(interrupt); in SetInterrupt()
280 return activeInterrupts.Contains(interrupt); in IsSet()
315 … var value = enabledInterrupts.Intersect(irq.Value).Intersect(activeInterrupts).Any(); in RefreshInterrupts()
325 private readonly HashSet<TInterrupt> activeInterrupts; field in Antmicro.Renode.Utilities.TInterrupt