src/arm64/gicplan.bend checks
raw source on the hub · import 0x51718d1816cd36f20955e9590377c5e5/src/arm64/gicplan.bend as Gicplan
1 import
import Base
Definitions
def Gic.dist source · line 24 · raw
U32
def Gic.redist source · line 27 · raw
U32
def Gic.cpu source · line 30 · raw
U32
def Gic.level source · line 33 · raw
U32
def Gic.nirqs source · line 37 · raw
U32
The SPIs the VM has: KVM_DEV_ARM_VGIC_GRP_NR_IRQS, as host/hvf.c sets it.
def Gic.keep source · line 40 · raw
@g:U32 -> @w:U32 -> @hi:U32 -> @lo:U32 -> List<&2, U32>
def Gic.clear source · line 43 · raw
@g:U32 -> @hi:U32 -> @lo:U32 -> List<&2, U32>
def Gic.bits source · line 47 · raw
@+g:U32 -> @+hi:U32 -> @off_set:U32 -> @off_clear:U32 -> List<&2, U32>
clear all at off_clear, then keep the saved bits of off_set
def Gic.redist_prio source · line 50 · raw
@n:Nat -> @+cpu:U32 -> @+i:U32 -> List<&2, U32>
def Gic.redist_one source · line 61 · raw
@+cpu:U32 -> List<&2, U32>
A redistributor: IGROUPR0 (0x10080), ICFGR0/1 (0x10c00, 0x10c04), IPRIORITYR0..7 (0x10400), ISPENDR0/ICPENDR0 (0x10200, 0x10280), ISACTIVER0/ICACTIVER0 (0x10300, 0x10380), ISENABLER0/ICENABLER0 (0x10100, 0x10180).
def Gic.redists source · line 71 · raw
@n:Nat -> @+cpu:U32 -> List<&2, U32>
def Gic.spi_group source · line 80 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
The SPI sections, from irq 32 on, each n steps of its stride. IGROUPR (0x80 + irq / 8), every 32 irqs.
def Gic.spi_prio source · line 88 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
IPRIORITYR (0x400 + irq), every 4 irqs.
def Gic.spi_cfg source · line 96 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
ICFGR (0xc00 + irq / 4), every 16 irqs.
def Gic.spi_route source · line 104 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
IROUTER (0x6000 + 8 * irq), low half then high, every irq.
def Gic.spi_level source · line 113 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
The line levels (VGIC_LEVEL_INFO_LINE_LEVEL, 0, at bit 10), every 32 irqs.
def Gic.spi_pend source · line 122 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
ISPENDR/ICPENDR (0x200, 0x280) and ISACTIVER/ICACTIVER (0x300, 0x380), every 32 irqs.
def Gic.spi_enable source · line 131 · raw
@n:Nat -> @+irq:U32 -> List<&2, U32>
ISENABLER/ICENABLER (0x100, 0x180), every 32 irqs.
def Gic.count source · line 140 · raw
@+nirqs:U32 -> @stride:U32 -> Nat
The SPI count (irqs 32 .. nirqs) in steps of the stride.
def Gic.spis source · line 143 · raw
@+nirqs:U32 -> List<&2, U32>
def Gic.icc source · line 155 · raw
List<&2, U32>
The CPU interface registers as KVM names them (op0 3, op1 0, then CRn, CRm, op2: op0 << 14 | op1 << 11 | CRn << 7 | CRm << 3 | op2).
def Gic.icc_one source · line 166 · raw
@+cpu:U32 -> @rs:List<&2, U32> -> List<&2, U32>
def Gic.iccs source · line 173 · raw
@n:Nat -> @+cpu:U32 -> List<&2, U32>
def Gic.plan source · line 181 · raw
@+cpus:U32 -> @+nirqs:U32 -> List<&2, U32>
The replay for a VM of cpus vCPUs and nirqs interrupts (a multiple of 32).