fixes fpu reg method calls (#1049)

Co-authored-by: tompro <tomas.prochazka@apertia.cz>
This commit is contained in:
SuchAFuriousDeath 2024-10-19 19:06:00 +02:00 committed by GitHub
parent 4f06154d6f
commit c2f486fa46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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: [

View File

@ -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> {