mirror of
https://github.com/obhq/obliteration.git
synced 2024-11-23 03:09:52 +00:00
fixes fpu reg method calls (#1049)
Co-authored-by: tompro <tomas.prochazka@apertia.cz>
This commit is contained in:
parent
4f06154d6f
commit
c2f486fa46
@ -328,8 +328,8 @@ impl<H: Hypervisor, S: Screen> CpuManager<H, S> {
|
||||
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: [
|
||||
|
@ -276,7 +276,7 @@ impl<'a> CpuStates for KvmStates<'a> {
|
||||
}
|
||||
|
||||
fn get_fiseg(&mut self) -> Result<u32, Self::Err> {
|
||||
Ok(((self.fregs.last_ip >> 32) & 0xFFFF) as u32)
|
||||
Ok((self.fregs.last_ip >> 32) as u32)
|
||||
}
|
||||
|
||||
fn get_fioff(&mut self) -> Result<u32, Self::Err> {
|
||||
@ -284,7 +284,7 @@ impl<'a> CpuStates for KvmStates<'a> {
|
||||
}
|
||||
|
||||
fn get_foseg(&mut self) -> Result<u32, Self::Err> {
|
||||
Ok(((self.fregs.last_dp >> 32) & 0xFFFF) as u32)
|
||||
Ok((self.fregs.last_dp >> 32) as u32)
|
||||
}
|
||||
|
||||
fn get_fooff(&mut self) -> Result<u32, Self::Err> {
|
||||
|
Loading…
Reference in New Issue
Block a user