target/ppc: optimize p8 exception handling routines
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Thu, 10 Oct 2024 05:47:36 +0000 (11:17 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:12:58 +0000 (09:12 +1000)
commit37e62398ab1deb5cbf425cca1d43c85f0fcb986c
treeba9f55471890ef0c9b40a98698b3bceb7b88b440
parent2a05a63c1dc9698ffbd8f704772018e07853c082
target/ppc: optimize p8 exception handling routines

Most of the p8 exception handling accesses env->pending_interrupts and
env->spr[SPR_LPCR] at multiple places. Passing it directly as local
variables simplifies the code and avoids multiple indirect accesses.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/excp_helper.c