mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/ppc: Remove msr_le macro
msr_le macro hides the usage of env->msr, which is a bad behavior Substitute it with FIELD_EX64 calls that explicitly use env->msr as a parameter. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220504210541.115256-5-victor.colombo@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
d41ccf6eea
commit
1922322ce4
4 changed files with 11 additions and 11 deletions
|
@ -7210,7 +7210,7 @@ static bool ppc_cpu_is_big_endian(CPUState *cs)
|
|||
|
||||
cpu_synchronize_state(cs);
|
||||
|
||||
return !msr_le;
|
||||
return !FIELD_EX64(env->msr, MSR, LE);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TCG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue