target/ppc: Remove env->immu_idx and env->dmmu_idx
commitd764184ddb22a7a41a293e54c26cfe1717167a3f
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Mar 2021 18:43:38 +0000 (23 12:43 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 May 2021 01:41:25 +0000 (4 11:41 +1000)
treedd31419ceb1145465b00924d4648ee23c59b2bc2
parent0e6bac3edb42b284aad329313e3a65c451af1d52
target/ppc: Remove env->immu_idx and env->dmmu_idx

We weren't recording MSR_GS in hflags, which means that BookE
memory accesses were essentially random vs Guest State.

Instead of adding this bit directly, record the completed mmu
indexes instead.  This makes it obvious that we are recording
exactly the information that we need.

This also means that we can stop directly recording MSR_IR.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210323184340.619757-9-richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h
target/ppc/helper_regs.c
target/ppc/helper_regs.h
target/ppc/machine.c
target/ppc/mem_helper.c
target/ppc/translate.c