From 3492279f78d4470caf157a834ef5216bc319d799 Mon Sep 17 00:00:00 2001 From: johannst Date: Fri, 28 May 2021 22:47:37 +0200 Subject: kvm_sys: remove Rflags type --- examples/real_mode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/real_mode.rs b/examples/real_mode.rs index 39d1796..70f3e1d 100644 --- a/examples/real_mode.rs +++ b/examples/real_mode.rs @@ -16,7 +16,7 @@ fn main() -> std::io::Result<()> { // Initialize VPCU registers. let mut regs = vcpu.get_regs()?; regs.rip = 0; - regs.rflags.0 = 0x2; + regs.rflags = 0x2; vcpu.set_regs(regs)?; // Initialize VPCU special registers. -- cgit v1.2.3