Page MenuHomeFreeBSD

vmm: Emulate testb imm8,r/m8
ClosedPublic

Authored by jlduran on Mar 3 2025, 7:14 AM.
Tags
None
Referenced Files
F134727475: D49208.id151818.diff
Tue, Nov 4, 5:32 AM
Unknown Object (File)
Thu, Oct 30, 9:25 AM
Unknown Object (File)
Thu, Oct 30, 9:25 AM
Unknown Object (File)
Thu, Oct 30, 12:49 AM
Unknown Object (File)
Wed, Oct 29, 9:02 PM
Unknown Object (File)
Wed, Oct 29, 1:13 PM
Unknown Object (File)
Fri, Oct 24, 4:45 AM
Unknown Object (File)
Fri, Oct 24, 3:48 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 62731
Build 59615: 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.Mar 3 2025, 6:47 PM
This revision was automatically updated to reflect the committed changes.