Searched hist:"9 b2fadda" (Results 1 – 1 of 1) sorted by relevance
/qemu/linux-user/ |
H A D | main.c | diff 9b2fadda Tue Jun 21 21:48:51 GMT 2016 Benjamin Herrenschmidt <benh@kernel.crashing.org> ppc: Rework generation of priv and inval interrupts
Recent server processors use the Hypervisor Emulation Assistance interrupt for illegal instructions and *some* type of SPR accesses.
Also the code was always generating inval instructions even for priv violations due to setting the wrong flags
Finally, the checking for PR/HV was open coded everywhere.
This reworks it all, using little helper macros for checking, and adding the HV interrupt (which gets converted back to program check in the slow path of excp_helper.c on CPUs that don't want it).
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [clg: fixed checkpatch.pl errors ] Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|