summaryrefslogtreecommitdiffstats
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorVijaya Kumar K2017-02-23 12:51:12 +0100
committerPeter Maydell2017-02-28 18:10:00 +0100
commitd3a3e529626fbee5cf0fb33414a85c9493adc280 (patch)
tree4b110116b22e9f450f3a746a6f049a6f8139180d /target/arm/cpu.h
parenthw/intc/arm_gicv3_kvm: Implement get/put functions (diff)
downloadqemu-d3a3e529626fbee5cf0fb33414a85c9493adc280.tar.gz
qemu-d3a3e529626fbee5cf0fb33414a85c9493adc280.tar.xz
qemu-d3a3e529626fbee5cf0fb33414a85c9493adc280.zip
target-arm: Add GICv3CPUState in CPUARMState struct
Add gicv3state void pointer to CPUARMState struct to store GICv3CPUState. In case of usecase like CPU reset, we need to reset GICv3CPUState of the CPU. In such scenario, this pointer becomes handy. Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@cavium.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Message-id: 1487850673-26455-5-git-send-email-vijay.kilari@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r--target/arm/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 9e7b2dfc83..25ceaabb5d 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -521,6 +521,8 @@ typedef struct CPUARMState {
void *nvic;
const struct arm_boot_info *boot_info;
+ /* Store GICv3CPUState to access from this struct */
+ void *gicv3state;
} CPUARMState;
/**