Changeset 99220 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Mar 30, 2023 12:40:46 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/BiosCommonCode/MakeAlternativeSource.cpp
r99208 r99220 935 935 * modrm.reg != 0. Those encodings should be invalid AFAICT. */ 936 936 937 if ( ( pDis-> bOpCode == 0x8f /* group 1a */938 || pDis-> bOpCode == 0xc7 /* group 11 */939 || pDis-> bOpCode == 0xc6 /* group 11 - not verified */937 if ( ( pDis->arch.x86.bOpCode == 0x8f /* group 1a */ 938 || pDis->arch.x86.bOpCode == 0xc7 /* group 11 */ 939 || pDis->arch.x86.bOpCode == 0xc6 /* group 11 - not verified */ 940 940 ) 941 && pDis-> ModRM.Bits.Reg != 0)941 && pDis->arch.x86.ModRM.Bits.Reg != 0) 942 942 fDifferent = true; 943 943 /* … … 999 999 cbToRead = g_cbImg - offBios; 1000 1000 } 1001 memcpy(&pDis-> abInstr[offInstr], &g_pbImg[offBios], cbToRead);1001 memcpy(&pDis->u.abInstr[offInstr], &g_pbImg[offBios], cbToRead); 1002 1002 pDis->cbCachedInstr = (uint8_t)(offInstr + cbToRead); 1003 1003 return VINF_SUCCESS; … … 1138 1138 unsigned cbInstr; 1139 1139 DISSTATE Dis; 1140 Dis. ModRM.Bits.Mod = 3;1140 Dis.arch.x86.ModRM.Bits.Mod = 3; 1141 1141 int rc = DISInstrWithReader(uFlatAddr, fIs16Bit ? DISCPUMODE_16BIT : DISCPUMODE_32BIT, 1142 1142 disReadOpcodeBytes, NULL, &Dis, &cbInstr); … … 1146 1146 && Dis.pCurInstr->uOpcode != OP_INVALID 1147 1147 && Dis.pCurInstr->uOpcode != OP_ILLUD2 1148 && ( !(Dis. fPrefix & DISPREFIX_ADDRSIZE)1148 && ( !(Dis.arch.x86.fPrefix & DISPREFIX_ADDRSIZE) 1149 1149 || disAccessesMemory(&Dis))) 1150 1150 {
Note:
See TracChangeset
for help on using the changeset viewer.