Changeset 99933 in vbox for trunk/src/VBox/VMM/include
- Timestamp:
- May 23, 2023 12:18:13 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/IEMInline.h
r99300 r99933 589 589 return iemOpcodeGetNextS8SxU16Slow(pVCpu, pu16); 590 590 591 *pu16 = ( int8_t)pVCpu->iem.s.abOpcode[offOpcode];591 *pu16 = (uint16_t)(int16_t)(int8_t)pVCpu->iem.s.abOpcode[offOpcode]; 592 592 pVCpu->iem.s.offOpcode = offOpcode + 1; 593 593 return VINF_SUCCESS; … … 611 611 } while (0) 612 612 # else 613 # define IEM_OPCODE_GET_NEXT_S8_SX_U16(a_pu16) (*(a_pu16) = ( int8_t)iemOpcodeGetNextU8Jmp(pVCpu))613 # define IEM_OPCODE_GET_NEXT_S8_SX_U16(a_pu16) (*(a_pu16) = (uint16_t)(int16_t)(int8_t)iemOpcodeGetNextU8Jmp(pVCpu)) 614 614 # endif 615 615 … … 629 629 return iemOpcodeGetNextS8SxU32Slow(pVCpu, pu32); 630 630 631 *pu32 = ( int8_t)pVCpu->iem.s.abOpcode[offOpcode];631 *pu32 = (uint32_t)(int32_t)(int8_t)pVCpu->iem.s.abOpcode[offOpcode]; 632 632 pVCpu->iem.s.offOpcode = offOpcode + 1; 633 633 return VINF_SUCCESS; … … 651 651 } while (0) 652 652 # else 653 # define IEM_OPCODE_GET_NEXT_S8_SX_U32(a_pu32) (*(a_pu32) = ( int8_t)iemOpcodeGetNextU8Jmp(pVCpu))653 # define IEM_OPCODE_GET_NEXT_S8_SX_U32(a_pu32) (*(a_pu32) = (uint32_t)(int32_t)(int8_t)iemOpcodeGetNextU8Jmp(pVCpu)) 654 654 # endif 655 655 … … 670 670 return iemOpcodeGetNextS8SxU64Slow(pVCpu, pu64); 671 671 672 *pu64 = ( int8_t)pVCpu->iem.s.abOpcode[offOpcode];672 *pu64 = (uint64_t)(int64_t)(int8_t)pVCpu->iem.s.abOpcode[offOpcode]; 673 673 pVCpu->iem.s.offOpcode = offOpcode + 1; 674 674 return VINF_SUCCESS; … … 692 692 } while (0) 693 693 # else 694 # define IEM_OPCODE_GET_NEXT_S8_SX_U64(a_pu64) (*(a_pu64) = ( int8_t)iemOpcodeGetNextU8Jmp(pVCpu))694 # define IEM_OPCODE_GET_NEXT_S8_SX_U64(a_pu64) (*(a_pu64) = (uint64_t)(int64_t)(int8_t)iemOpcodeGetNextU8Jmp(pVCpu)) 695 695 # endif 696 696 … … 1155 1155 pVCpu->iem.s.abOpcode[offOpcode + 2], 1156 1156 pVCpu->iem.s.abOpcode[offOpcode + 3]); 1157 *pu64 = i32;1157 *pu64 = (uint64_t)(int64_t)i32; 1158 1158 pVCpu->iem.s.offOpcode = offOpcode + 4; 1159 1159 return VINF_SUCCESS; … … 1177 1177 } while (0) 1178 1178 # else 1179 # define IEM_OPCODE_GET_NEXT_S32_SX_U64(a_pu64) (*(a_pu64) = ( int32_t)iemOpcodeGetNextU32Jmp(pVCpu))1179 # define IEM_OPCODE_GET_NEXT_S32_SX_U64(a_pu64) (*(a_pu64) = (uint64_t)(int64_t)(int32_t)iemOpcodeGetNextU32Jmp(pVCpu)) 1180 1180 # endif 1181 1181
Note:
See TracChangeset
for help on using the changeset viewer.