|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 17/21] target/ppc: Remove msr_fe0 and msr_fe1 macros |
Date: | Mon, 2 May 2022 15:00:46 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 |
On 5/2/22 07:39, Víctor Colombo wrote:
msr_fe0 and msr_fe1 macros hide 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>
- if ((msr_fe0 == 0 && msr_fe1 == 0) || + if ((!FIELD_EX64(env->msr, MSR, FE0) && + !FIELD_EX64(env->msr, MSR, FE1)) || !FIELD_EX64(env->msr, MSR, FP)) {
This has 6 repetitions. Perhaps extract to a helper for conciseness? r~
[Prev in Thread] | Current Thread | [Next in Thread] |