]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/ppc: use locally stored msr and avoid indirect access
authorHarsh Prateek Bora <harshpb@linux.ibm.com>
Thu, 10 Oct 2024 05:47:32 +0000 (11:17 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:12:52 +0000 (09:12 +1000)
commit2bbddc08bc1d7046b58880454e3278530f825885
tree811d154b68d08884e24a917406796eb82819a8e7
parent273db89bcaf42102580a7994fdf7f0651e35092c
target/ppc: use locally stored msr and avoid indirect access

hreg_compute_hflags_value already stores msr locally to be used in most
of the logic in the routine however some instances are still using
env->msr which is unnecessary. Use locally stored value as available.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/helper_regs.c