VirtualBox

Changeset 97182 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 17, 2022 9:56:46 PM (2 years ago)
Author:
vboxsync
Message:

VMM/CPUM,EM,HM,IEM,++: Moved VMCPU_FF_INHIBIT_INTERRUPTS and VMCPU_FF_BLOCK_NMIS to CPUMCTX::fInhibit. Moved ldtr and tr up to the CPUMCTXCORE area in hope for better cache alignment of rip, rflags and crX register fields. [2nd fix attempt for older gcc] bugref:9941

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r97181 r97182  
    19571957        return true;
    19581958
    1959     pCtx->fInhibit &= ~(uint8_t)CPUMCTX_INHIBIT_SHADOW;
     1959    pCtx->fInhibit &= (uint8_t)~CPUMCTX_INHIBIT_SHADOW;
    19601960    return false;
    19611961}
     
    19941994DECLINLINE(void) CPUMClearInterruptShadow(PCPUMCTX pCtx)
    19951995{
    1996     pCtx->fInhibit &= ~(uint8_t)CPUMCTX_INHIBIT_SHADOW;
     1996    pCtx->fInhibit &= (uint8_t)~CPUMCTX_INHIBIT_SHADOW;
    19971997}
    19981998
     
    20082008    CPUMCTX_ASSERT_NOT_EXTRN(pCtx, CPUMCTX_EXTRN_RIP);
    20092009    if (!fInhibited)
    2010         pCtx->fInhibit &= ~(uint8_t)CPUMCTX_INHIBIT_SHADOW;
     2010        pCtx->fInhibit &= (uint8_t)~CPUMCTX_INHIBIT_SHADOW;
    20112011    else
    20122012    {
     
    20272027{
    20282028    if (!fInhibited)
    2029         pCtx->fInhibit &= ~(uint8_t)CPUMCTX_INHIBIT_SHADOW;
     2029        pCtx->fInhibit &= (uint8_t)~CPUMCTX_INHIBIT_SHADOW;
    20302030    else
    20312031    {
     
    21082108DECLINLINE(void) CPUMClearInterruptInhibitingByNmi(PCPUMCTX pCtx)
    21092109{
    2110     pCtx->fInhibit &= ~(uint8_t)CPUMCTX_INHIBIT_NMI;
     2110    pCtx->fInhibit &= (uint8_t)~CPUMCTX_INHIBIT_NMI;
    21112111}
    21122112
     
    21382138{
    21392139    if (!fInhibited)
    2140         pCtx->fInhibit &= ~(uint8_t)CPUMCTX_INHIBIT_NMI;
     2140        pCtx->fInhibit &= (uint8_t)~CPUMCTX_INHIBIT_NMI;
    21412141    else
    21422142        pCtx->fInhibit |= CPUMCTX_INHIBIT_NMI;
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