aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/real_mode.rs
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-28 22:47:37 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-28 22:47:37 +0200
commit3492279f78d4470caf157a834ef5216bc319d799 (patch)
treee77e615dc496a0765bf2b3c50358129787234bc8 /examples/real_mode.rs
parentefd2dbdaffe41c4cd89d762ec6d3828449b173cb (diff)
downloadmini-kvm-rs-3492279f78d4470caf157a834ef5216bc319d799.tar.gz
mini-kvm-rs-3492279f78d4470caf157a834ef5216bc319d799.zip
kvm_sys: remove Rflags type
Diffstat (limited to 'examples/real_mode.rs')
-rw-r--r--examples/real_mode.rs2
1 files changed, 1 insertions, 1 deletions
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.