|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 16/21] target/ppc: Remove msr_ep macro |
Date: | Mon, 2 May 2022 14:50:02 -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:
- if (unlikely((value >> MSR_EP) & 1) != msr_ep) { - env->excp_prefix = ((value >> MSR_EP) & 1) * 0xFFF00000; + if (unlikely(!(value & env->msr & R_MSR_EP_MASK))) {
Needs xor.
+ env->excp_prefix = FIELD_EX64(env->msr, MSR, EP) * 0xFFF00000;
Needs extract from value. r~
[Prev in Thread] | Current Thread | [Next in Thread] |