Page MenuHomeFreeBSD

vmm: Emulate testb imm8,r/m8
ClosedPublic

Authored by jlduran on Mon, Mar 3, 7:14 AM.
Tags
None
Referenced Files
F112512710: D49208.id151841.diff
Wed, Mar 19, 3:44 AM
Unknown Object (File)
Mon, Mar 17, 10:24 PM
Unknown Object (File)
Sat, Mar 8, 1:59 PM
Unknown Object (File)
Thu, Mar 6, 1:01 AM
Unknown Object (File)
Tue, Mar 4, 9:26 PM
Unknown Object (File)
Tue, Mar 4, 5:14 PM
Unknown Object (File)
Tue, Mar 4, 1:54 PM
Unknown Object (File)
Tue, Mar 4, 9:23 AM

Details

Summary

Add support for "testb imm8,r/m8" emulation.

PR: 261940
PR: 282852
Obtained from: Illumos (bug #14483)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62744
Build 59628: arc lint + arc unit

Event Timeline

markj added inline comments.
sys/amd64/vmm/vmm_instruction_emul.c
1312

Rather than duplicating the whole implementation, IMO it'd be neater to write:

case 0xF6:
    size = 1;
    /* FALLTHROUGH */
case 0xF7:
    ...
jlduran marked an inline comment as done.

Address suggestions:

  • Keep things "DRY"
This revision is now accepted and ready to land.Mon, Mar 3, 6:47 PM
This revision was automatically updated to reflect the committed changes.