VirtualBox

Ignore:
Timestamp:
Nov 17, 2022 12:12:23 AM (2 years ago)
Author:
vboxsync
Message:

ValKit/bs3-cpu-basic-2: Test both variations of rex.w and opsize prefixes since AMD cares about these and the order obviously matters. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-basic-2-template.mac

    r97582 r97585  
    17411741BS3_PROC_END_CMN   bs3CpuBasic2_retn_i24_rexw__ud2
    17421742
     1743BS3_CPUBAS2_UD_OFF bs3CpuBasic2_retn_opsize_rexw__ud2
     1744BS3_PROC_BEGIN_CMN bs3CpuBasic2_retn_opsize_rexw__ud2, BS3_PBC_NEAR
     1745        db      66h, 048h
     1746        ret
     1747.again: ud2
     1748        jmp     .again
     1749BS3_PROC_END_CMN   bs3CpuBasic2_retn_opsize_rexw__ud2
     1750
     1751BS3_CPUBAS2_UD_OFF bs3CpuBasic2_retn_i24_opsize_rexw__ud2
     1752BS3_PROC_BEGIN_CMN bs3CpuBasic2_retn_i24_opsize_rexw__ud2, BS3_PBC_NEAR
     1753        db      66h, 048h
     1754        ret     24
     1755.again: ud2
     1756        jmp     .again
     1757AssertCompile(.again - BS3_LAST_LABEL == 5)
     1758BS3_PROC_END_CMN   bs3CpuBasic2_retn_i24_opsize_rexw__ud2
     1759
    17431760 %endif
    17441761
     
    17751792
    17761793 %if TMPL_BITS == 64
    1777 BS3_CPUBAS2_UD_OFF bs3CpuBasic2_retn_opsize_rexw__ud2
    1778 BS3_PROC_BEGIN_CMN bs3CpuBasic2_retn_opsize_rexw__ud2, BS3_PBC_NEAR
    1779         db      66h, 048h
     1794BS3_CPUBAS2_UD_OFF bs3CpuBasic2_retn_rexw_opsize__ud2
     1795BS3_PROC_BEGIN_CMN bs3CpuBasic2_retn_rexw_opsize__ud2, BS3_PBC_NEAR
     1796        db      048h, 66h
    17801797        ret
    17811798.again: ud2
    17821799        jmp     .again
    1783 BS3_PROC_END_CMN   bs3CpuBasic2_retn_opsize_rexw__ud2
    1784 
    1785 BS3_CPUBAS2_UD_OFF bs3CpuBasic2_retn_i24_opsize_rexw__ud2
    1786 BS3_PROC_BEGIN_CMN bs3CpuBasic2_retn_i24_opsize_rexw__ud2, BS3_PBC_NEAR
    1787         db      66h, 048h
     1800BS3_PROC_END_CMN   bs3CpuBasic2_retn_rexw_opsize__ud2
     1801
     1802BS3_CPUBAS2_UD_OFF bs3CpuBasic2_retn_i24_rexw_opsize__ud2
     1803BS3_PROC_BEGIN_CMN bs3CpuBasic2_retn_i24_rexw_opsize__ud2, BS3_PBC_NEAR
     1804        db      048h, 66h
    17881805        ret     24
    17891806.again: ud2
    17901807        jmp     .again
    17911808AssertCompile(.again - BS3_LAST_LABEL == 5)
    1792 BS3_PROC_END_CMN   bs3CpuBasic2_retn_i24_opsize_rexw__ud2
     1809BS3_PROC_END_CMN   bs3CpuBasic2_retn_i24_rexw_opsize__ud2
    17931810 %endif
    17941811
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette