mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target/ppc: Remove msr_ts macro
msr_ts 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-19-victor.colombo@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
da806a6c63
commit
ca241959cd
3 changed files with 4 additions and 4 deletions
|
@ -974,7 +974,7 @@ int kvm_arch_put_registers(CPUState *cs, int level)
|
|||
}
|
||||
|
||||
#ifdef TARGET_PPC64
|
||||
if (msr_ts) {
|
||||
if (FIELD_EX64(env->msr, MSR, TS)) {
|
||||
for (i = 0; i < ARRAY_SIZE(env->tm_gpr); i++) {
|
||||
kvm_set_one_reg(cs, KVM_REG_PPC_TM_GPR(i), &env->tm_gpr[i]);
|
||||
}
|
||||
|
@ -1282,7 +1282,7 @@ int kvm_arch_get_registers(CPUState *cs)
|
|||
}
|
||||
|
||||
#ifdef TARGET_PPC64
|
||||
if (msr_ts) {
|
||||
if (FIELD_EX64(env->msr, MSR, TS)) {
|
||||
for (i = 0; i < ARRAY_SIZE(env->tm_gpr); i++) {
|
||||
kvm_get_one_reg(cs, KVM_REG_PPC_TM_GPR(i), &env->tm_gpr[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue