mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03: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
|
@ -95,7 +95,7 @@ static int ppc_gdb_register_len(int n)
|
|||
void ppc_maybe_bswap_register(CPUPPCState *env, uint8_t *mem_buf, int len)
|
||||
{
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
if (!msr_le) {
|
||||
if (!FIELD_EX64(env->msr, MSR, LE)) {
|
||||
/* do nothing */
|
||||
} else if (len == 4) {
|
||||
bswap32s((uint32_t *)mem_buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue