mirror of
https://github.com/mii443/nel_os.git
synced 2025-08-22 16:15:38 +00:00
CLAC/STAC emulation. linux boot!
This commit is contained in:
@ -1152,9 +1152,17 @@ impl VCpu {
|
||||
match instruction_bytes[1] {
|
||||
0x01 => match instruction_bytes[2] {
|
||||
0xCA => {
|
||||
unsafe {
|
||||
let rflags = vmread(vmcs::guest::RFLAGS).unwrap();
|
||||
vmwrite(vmcs::guest::RFLAGS, rflags & !(1 << 18)).unwrap();
|
||||
}
|
||||
self.step_next_inst().unwrap();
|
||||
}
|
||||
0xCB => {
|
||||
unsafe {
|
||||
let rflags = vmread(vmcs::guest::RFLAGS).unwrap();
|
||||
vmwrite(vmcs::guest::RFLAGS, rflags | (1 << 18)).unwrap();
|
||||
}
|
||||
self.step_next_inst().unwrap();
|
||||
}
|
||||
_ => {
|
||||
|
Reference in New Issue
Block a user