mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
hw/intc/arm_gic: introduce a first-cpu-index property
This introduces a first-cpu-index property to the arm-gic, as some SOCs could have two separate GIC (ie: the zynqmp). Signed-off-by: Clément Chigot <chigot@adacore.com> Message-id: 20250526085523.809003-3-chigot@adacore.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: slightly expanded comment documenting GIC property] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
5dc8e4e892
commit
6559e7ad8e
4 changed files with 7 additions and 1 deletions
|
@ -27,6 +27,9 @@
|
|||
* implement the security extensions
|
||||
* + QOM property "has-virtualization-extensions": set true if the GIC should
|
||||
* implement the virtualization extensions
|
||||
* + QOM property "first-cpu-index": index of the first cpu attached to the
|
||||
* GIC (default 0). The CPUs connected to the GIC are assumed to be
|
||||
* first-cpu-index, first-cpu-index + 1, ... first-cpu-index + num-cpu - 1.
|
||||
* + unnamed GPIO inputs: (where P is number of SPIs, i.e. num-irq - 32)
|
||||
* [0..P-1] SPIs
|
||||
* [P..P+31] PPIs for CPU 0
|
||||
|
|
|
@ -129,6 +129,8 @@ struct GICState {
|
|||
uint32_t num_lrs;
|
||||
|
||||
uint32_t num_cpu;
|
||||
/* cpu_index of the first CPU, attached to this GIC. */
|
||||
uint32_t first_cpu_index;
|
||||
|
||||
MemoryRegion iomem; /* Distributor */
|
||||
/* This is just so we can have an opaque pointer which identifies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue