Skip to content

Commit 7c3c6d8

Browse files
committed
fix: 修复 vtcr_el2 的设置逻辑,移除多余的值计算
1 parent f484d8b commit 7c3c6d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vcpu.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ impl Aarch64VCpu {
119119
} + (VTCR_EL2::TG0::Granule4KB
120120
+ VTCR_EL2::SH0::Inner
121121
+ VTCR_EL2::ORGN0::NormalWBRAWA
122-
+ VTCR_EL2::IRGN0::NormalWBRAWA)
123-
.value;
122+
+ VTCR_EL2::IRGN0::NormalWBRAWA);
124123
self.guest_system_regs.vtcr_el2 = val.value;
125124
VTCR_EL2.set(self.guest_system_regs.vtcr_el2);
126125

0 commit comments

Comments
 (0)