VirtualBox

Ignore:
Timestamp:
Mar 24, 2024 6:47:23 PM (10 months ago)
Author:
vboxsync
Message:

VMM/IEM: Build fix for linux.arm64 (gcc complains about unsequenced operation because off is read and/or written on both sides of the same statement), bugref:10391

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IEMN8veRecompilerEmit.h

    r103973 r104030  
    62156215#elif defined(RT_ARCH_ARM64)
    62166216    if (pReNative->paLabels[idxLabel].off != UINT32_MAX)
    6217         pCodeBuf[off++] = Armv8A64MkInstrB(pReNative->paLabels[idxLabel].off - off);
     6217    {
     6218        pCodeBuf[off] = Armv8A64MkInstrB(pReNative->paLabels[idxLabel].off - off);
     6219        off++;
     6220    }
    62186221    else
    62196222    {
     
    63546357    {
    63556358        Assert(off - offLabel <= 0x3ffffU);
    6356         pCodeBuf[off++] = Armv8A64MkInstrBCond(enmCond, offLabel - off);
     6359        pCodeBuf[off] = Armv8A64MkInstrBCond(enmCond, offLabel - off);
     6360        off++;
    63576361    }
    63586362
     
    65806584
    65816585#elif defined(RT_ARCH_ARM64)
    6582     pCodeBuf[off++] = Armv8A64MkInstrBCond(enmCond, (int32_t)(offTarget - off));
    6583 
     6586    pCodeBuf[off] = Armv8A64MkInstrBCond(enmCond, (int32_t)(offTarget - off));
     6587    off++;
    65846588#else
    65856589# error "Port me!"
     
    67116715
    67126716#elif defined(RT_ARCH_ARM64)
    6713     pCodeBuf[off++] = Armv8A64MkInstrB((int32_t)(offTarget - off));
     6717    pCodeBuf[off] = Armv8A64MkInstrB((int32_t)(offTarget - off));
     6718    off++;
    67146719
    67156720#else
     
    71887193#elif defined(RT_ARCH_ARM64)
    71897194    if (pReNative->paLabels[idxLabel].off != UINT32_MAX)
    7190         pCodeBuf[off++] = Armv8A64MkInstrCbzCbnz(fJmpIfNotZero, (int32_t)(pReNative->paLabels[idxLabel].off - off),
    7191                                                  iGprSrc, f64Bit);
     7195    {
     7196        pCodeBuf[off] = Armv8A64MkInstrCbzCbnz(fJmpIfNotZero, (int32_t)(pReNative->paLabels[idxLabel].off - off),
     7197                                               iGprSrc, f64Bit);
     7198        off++;
     7199    }
    71927200    else
    71937201    {
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