Skip to content

Commit

Permalink
target/ppc: Use env_cpu for cpu_abort in excp_helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zbalaton authored and npiggin committed Mar 12, 2024
1 parent 9940412 commit bc30c1c
Showing 1 changed file with 63 additions and 55 deletions.

0 comments on commit bc30c1c

Please sign in to comment.