README.md aktualisiert
This commit is contained in:
@@ -28,11 +28,12 @@ oid vmexit_passthrough_handler::handle_ldtr_tr_access(vcpu_t& vp) noexcept
|
||||
|
||||
cr3_guard _{ vp.guest_cr3() };
|
||||
|
||||
// notice how regardless of the executed instruction, even for memory destinations, it only cares about the lower bits, i.e u16
|
||||
auto& low_word =
|
||||
instruction_info.access_type == vmx::instruction_info_t::access_memory
|
||||
? *reinterpret_cast<uint16_t*>(vp.exit_instruction_info_guest_va())
|
||||
// instruction_info.access_type == vmx::instruction_info::access_register
|
||||
: reinterpret_cast<uint16_t&>(vp.context().gp_register[instruction_info.register_1]); // notice how it only cares about the lower bits, i.e u16
|
||||
: reinterpret_cast<uint16_t&>(vp.context().gp_register[instruction_info.register_1]);
|
||||
|
||||
switch (instruction_info.instruction)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user