File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ static bool trap_loregion(struct kvm_vcpu *vcpu,
379
379
struct sys_reg_params * p ,
380
380
const struct sys_reg_desc * r )
381
381
{
382
- u64 val = read_sanitised_ftr_reg ( SYS_ID_AA64MMFR1_EL1 );
382
+ u64 val = IDREG ( vcpu -> kvm , SYS_ID_AA64MMFR1_EL1 );
383
383
u32 sr = reg_to_encoding (r );
384
384
385
385
if (!(val & (0xfUL << ID_AA64MMFR1_EL1_LO_SHIFT ))) {
@@ -2445,8 +2445,8 @@ static bool trap_dbgdidr(struct kvm_vcpu *vcpu,
2445
2445
if (p -> is_write ) {
2446
2446
return ignore_write (vcpu , p );
2447
2447
} else {
2448
- u64 dfr = read_sanitised_ftr_reg ( SYS_ID_AA64DFR0_EL1 );
2449
- u64 pfr = read_sanitised_ftr_reg ( SYS_ID_AA64PFR0_EL1 );
2448
+ u64 dfr = IDREG ( vcpu -> kvm , SYS_ID_AA64DFR0_EL1 );
2449
+ u64 pfr = IDREG ( vcpu -> kvm , SYS_ID_AA64PFR0_EL1 );
2450
2450
u32 el3 = !!cpuid_feature_extract_unsigned_field (pfr , ID_AA64PFR0_EL1_EL3_SHIFT );
2451
2451
2452
2452
p -> regval = ((((dfr >> ID_AA64DFR0_EL1_WRPs_SHIFT ) & 0xf ) << 28 ) |
You can’t perform that action at this time.
0 commit comments