target/arm: Fetch GICv3 state directly from CPUARMState

This eliminates the need for fetching it from el_change_hook_opaque, and
allows for supporting multiple el_change_hooks without having to hack
something together to find the registered opaque belonging to GICv3.

Backports commit d5a5e4c93dae0dc3feb402cf7ee78d846da1a7e1 from qemu
This commit is contained in:
Aaron Lindsay 2018-04-26 09:10:30 -04:00 committed by Lioncash
parent 1228bcf45d
commit dfe1f54920
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2862,16 +2862,6 @@ static inline AddressSpace *arm_addressspace(CPUState *cs, MemTxAttrs attrs)
void arm_register_el_change_hook(ARMCPU *cpu, ARMELChangeHook *hook, void arm_register_el_change_hook(ARMCPU *cpu, ARMELChangeHook *hook,
void *opaque); void *opaque);
/**
* arm_get_el_change_hook_opaque:
* Return the opaque data that will be used by the el_change_hook
* for this CPU.
*/
static inline void *arm_get_el_change_hook_opaque(ARMCPU *cpu)
{
return cpu->el_change_hook_opaque;
}
/** /**
* aa32_vfp_dreg: * aa32_vfp_dreg:
* Return a pointer to the Dn register within env in 32-bit mode. * Return a pointer to the Dn register within env in 32-bit mode.