aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--examples/real_mode.rs2
-rw-r--r--src/kvm_sys.rs6
2 files changed, 2 insertions, 6 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.
diff --git a/src/kvm_sys.rs b/src/kvm_sys.rs
index 8179a8f..0add602 100644
--- a/src/kvm_sys.rs
+++ b/src/kvm_sys.rs
@@ -7,10 +7,6 @@ include!(concat!(env!("OUT_DIR"), "/kvm_constants.rs"));
#[repr(C)]
#[derive(Default, Debug)]
-pub struct Rflags(pub u64);
-
-#[repr(C)]
-#[derive(Default, Debug)]
pub struct kvm_regs {
pub rax: u64,
pub rbx: u64,
@@ -29,7 +25,7 @@ pub struct kvm_regs {
pub r14: u64,
pub r15: u64,
pub rip: u64,
- pub rflags: Rflags,
+ pub rflags: u64,
}
#[repr(C)]