VirtualBox

Changeset 97527 in vbox for trunk/include


Ignore:
Timestamp:
Nov 14, 2022 10:45:21 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154551
Message:

DIS: Don't restrict the OPCODES enum to 1024 entires, we're not using the 15 byte DISOPCODE format and has a full 16-bit fields for it. bugref:9898

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dis.h

    r97211 r97527  
    569569AssertCompile(sizeof(DISOPCODE) == DISOPCODE_FORMAT);
    570570#endif
     571AssertCompile(DISOPCODE_FORMAT != 15); /* Needs fixing before use as disopcode.h now has more than 1024 opcode values. */
    571572/** Pointer to const opcode. */
    572573typedef const struct DISOPCODE *PCDISOPCODE;
  • trunk/include/VBox/disopcode.h

    r97493 r97527  
    11201120};
    11211121AssertCompile(OP_LOCK == 7);
     1122#if 0
    11221123AssertCompile(OP_END_OF_OPCODES < 1024 /* see 15 byte DISOPCODE variant */);
     1124#endif
    11231125/** @} */
    11241126
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