target/ppc: Use env_cpu for cpu_abort in excp_helper
commitbc30c1c6632c33eb9a27680b2de673d8b22a65b3
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 27 Feb 2024 15:08:01 +0000 (27 16:08 +0100)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (13 02:47 +1000)
treee596eeb6d8d5da116d148fbb7e0c0868040d6a08
parent9940412ae4ae2d4971959c13311ba8d822974452
target/ppc: Use env_cpu for cpu_abort in excp_helper

Use the env_cpu function to get the CPUState for cpu_abort. These are
only needed in case of fatal errors so this allows to avoid casting
and storing CPUState in a local variable wnen not needed.

Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/excp_helper.c