VirtualBox

Ignore:
Timestamp:
Feb 18, 2025 3:46:53 PM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167608
Message:

VMM/IEM: Removed the #ifndef IEM_WITH_SETJMP code. We've had IEM_WITH_SETJMP defined unconditionally since 7.0 and the code probably doesn't even compile w/o it, so best remove the unused code. jiraref:VBP-1531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/target-x86/IEMAllXcpt-x86.cpp

    r108260 r108278  
    26012601}
    26022602
    2603 #ifdef IEM_WITH_SETJMP
    26042603/**
    26052604 * See iemRaiseXcptOrInt.  Will not return.
     
    26162615    IEM_DO_LONGJMP(pVCpu, VBOXSTRICTRC_VAL(rcStrict));
    26172616}
    2618 #endif
    26192617
    26202618
     
    26352633
    26362634
    2637 #ifdef IEM_WITH_SETJMP
    26382635/** \#DE - 00.  */
    26392636DECL_NO_RETURN(void) iemRaiseDivideErrorJmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    26412638    iemRaiseXcptOrIntJmp(pVCpu, 0, X86_XCPT_DE, IEM_XCPT_FLAGS_T_CPU_XCPT, 0, 0);
    26422639}
    2643 #endif
    26442640
    26452641
     
    26682664
    26692665
    2670 #ifdef IEM_WITH_SETJMP
    26712666/** \#UD - 06.  */
    26722667DECL_NO_RETURN(void) iemRaiseUndefinedOpcodeJmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    26742669    iemRaiseXcptOrIntJmp(pVCpu, 0, X86_XCPT_UD, IEM_XCPT_FLAGS_T_CPU_XCPT, 0, 0);
    26752670}
    2676 #endif
    26772671
    26782672
     
    26842678
    26852679
    2686 #ifdef IEM_WITH_SETJMP
    26872680/** \#NM - 07.  */
    26882681DECL_NO_RETURN(void) iemRaiseDeviceNotAvailableJmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    26902683    iemRaiseXcptOrIntJmp(pVCpu, 0, X86_XCPT_NM, IEM_XCPT_FLAGS_T_CPU_XCPT, 0, 0);
    26912684}
    2692 #endif
    26932685
    26942686
     
    27752767}
    27762768
    2777 #ifdef IEM_WITH_SETJMP
     2769
    27782770/** \#GP(0) - 0d.  */
    27792771DECL_NO_RETURN(void) iemRaiseGeneralProtectionFault0Jmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    27822774    iemRaiseXcptOrIntJmp(pVCpu, 0, X86_XCPT_GP, IEM_XCPT_FLAGS_T_CPU_XCPT | IEM_XCPT_FLAGS_ERR, 0, 0);
    27832775}
    2784 #endif
    27852776
    27862777
     
    28132804}
    28142805
    2815 #ifdef IEM_WITH_SETJMP
     2806
    28162807/** \#GP(sel) - 0d, longjmp.  */
    28172808DECL_NO_RETURN(void) iemRaiseSelectorBoundsJmp(PVMCPUCC pVCpu, uint32_t iSegReg, uint32_t fAccess) IEM_NOEXCEPT_MAY_LONGJMP
     
    28232814                         IEM_XCPT_FLAGS_T_CPU_XCPT | IEM_XCPT_FLAGS_ERR, 0, 0);
    28242815}
    2825 #endif
     2816
    28262817
    28272818/** \#GP(sel) - 0d.  */
     
    28342825}
    28352826
    2836 #ifdef IEM_WITH_SETJMP
     2827
    28372828/** \#GP(sel) - 0d, longjmp.  */
    28382829DECL_NO_RETURN(void) iemRaiseSelectorBoundsBySelectorJmp(PVMCPUCC pVCpu, RTSEL Sel) IEM_NOEXCEPT_MAY_LONGJMP
     
    28432834    iemRaiseXcptOrIntJmp(pVCpu, 0, X86_XCPT_GP, IEM_XCPT_FLAGS_T_CPU_XCPT | IEM_XCPT_FLAGS_ERR, 0, 0);
    28442835}
    2845 #endif
    28462836
    28472837
     
    28552845}
    28562846
    2857 #ifdef IEM_WITH_SETJMP
     2847
    28582848/** \#GP(sel) - 0d, longjmp.  */
    28592849DECL_NO_RETURN(void) iemRaiseSelectorInvalidAccessJmp(PVMCPUCC pVCpu, uint32_t iSegReg, uint32_t fAccess) IEM_NOEXCEPT_MAY_LONGJMP
     
    28622852    iemRaiseXcptOrIntJmp(pVCpu, 0, X86_XCPT_GP, IEM_XCPT_FLAGS_T_CPU_XCPT | IEM_XCPT_FLAGS_ERR, 0, 0);
    28632853}
    2864 #endif
    28652854
    28662855
     
    29302919}
    29312920
    2932 #ifdef IEM_WITH_SETJMP
     2921
    29332922/** \#PF(n) - 0e, longjmp.  */
    29342923DECL_NO_RETURN(void) iemRaisePageFaultJmp(PVMCPUCC pVCpu, RTGCPTR GCPtrWhere, uint32_t cbAccess,
     
    29372926    IEM_DO_LONGJMP(pVCpu, VBOXSTRICTRC_VAL(iemRaisePageFault(pVCpu, GCPtrWhere, cbAccess, fAccess, rc)));
    29382927}
    2939 #endif
    29402928
    29412929
     
    29512939}
    29522940
    2953 #ifdef IEM_WITH_SETJMP
     2941
    29542942/** \#MF(0) - 10, longjmp.  */
    29552943DECL_NO_RETURN(void) iemRaiseMathFaultJmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    29572945    IEM_DO_LONGJMP(pVCpu, VBOXSTRICTRC_VAL(iemRaiseMathFault(pVCpu)));
    29582946}
    2959 #endif
    29602947
    29612948
     
    29662953}
    29672954
    2968 #ifdef IEM_WITH_SETJMP
     2955
    29692956/** \#AC(0) - 11, longjmp.  */
    29702957DECL_NO_RETURN(void) iemRaiseAlignmentCheckExceptionJmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    29722959    IEM_DO_LONGJMP(pVCpu, VBOXSTRICTRC_VAL(iemRaiseAlignmentCheckException(pVCpu)));
    29732960}
    2974 #endif
    29752961
    29762962
     
    29822968
    29832969
    2984 #ifdef IEM_WITH_SETJMP
    29852970/** \#XF(0)/\#XM(0) - 19s, longjmp.  */
    29862971DECL_NO_RETURN(void) iemRaiseSimdFpExceptionJmp(PVMCPUCC pVCpu) IEM_NOEXCEPT_MAY_LONGJMP
     
    29882973    IEM_DO_LONGJMP(pVCpu, VBOXSTRICTRC_VAL(iemRaiseSimdFpException(pVCpu)));
    29892974}
    2990 #endif
    29912975
    29922976
Note: See TracChangeset for help on using the changeset viewer.

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