diff --git a/gui/src/vmm/cpu/mod.rs b/gui/src/vmm/cpu/mod.rs index cec4c434..7ecde02b 100644 --- a/gui/src/vmm/cpu/mod.rs +++ b/gui/src/vmm/cpu/mod.rs @@ -328,8 +328,8 @@ impl CpuManager { ftag: states.get_ftwx().map_err(|e| error("ftwx", e))?, fiseg: states.get_fiseg().map_err(|e| error("fiseg", e))?, fioff: states.get_fioff().map_err(|e| error("fioff", e))?, - foseg: states.get_fiseg().map_err(|e| error("foseg", e))?, - fooff: states.get_fioff().map_err(|e| error("fooff", e))?, + foseg: states.get_foseg().map_err(|e| error("foseg", e))?, + fooff: states.get_fooff().map_err(|e| error("fooff", e))?, fop: states.get_fop().map_err(|e| error("fop", e))?, }, xmm: [ diff --git a/gui/src/vmm/hv/linux/x86_64.rs b/gui/src/vmm/hv/linux/x86_64.rs index 7598437b..1df706b3 100644 --- a/gui/src/vmm/hv/linux/x86_64.rs +++ b/gui/src/vmm/hv/linux/x86_64.rs @@ -276,7 +276,7 @@ impl<'a> CpuStates for KvmStates<'a> { } fn get_fiseg(&mut self) -> Result { - Ok(((self.fregs.last_ip >> 32) & 0xFFFF) as u32) + Ok((self.fregs.last_ip >> 32) as u32) } fn get_fioff(&mut self) -> Result { @@ -284,7 +284,7 @@ impl<'a> CpuStates for KvmStates<'a> { } fn get_foseg(&mut self) -> Result { - Ok(((self.fregs.last_dp >> 32) & 0xFFFF) as u32) + Ok((self.fregs.last_dp >> 32) as u32) } fn get_fooff(&mut self) -> Result {