VirtualBox

Changeset 108639 in vbox for trunk/src


Ignore:
Timestamp:
Mar 20, 2025 12:28:34 PM (8 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168052
Message:

VMM/VMMAll/IEMAllN8veExecMem.cpp: clang build fixes, bugref:10391

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/VMM/VMMAll/IEMAllN8veExecMem.cpp

    r108195 r108639  
    11791179
    11801180    /* There is __builtin___clear_cache() but it flushes both the instruction and data cache, so do it manually. */
    1181     static uint32_t s_u32CtrEl0 = 0;
    1182     if (!s_u32CtrEl0)
    1183         asm volatile ("mrs %0, ctr_el0":"=r" (s_u32CtrEl0));
    1184     uintptr_t cbICacheLine = (uintptr_t)4 << (s_u32CtrEl0 & 0xf);
     1181    static uint64_t s_u64CtrEl0 = 0;
     1182    if (!s_u64CtrEl0)
     1183        asm volatile ("mrs %0, ctr_el0":"=r" (s_u64CtrEl0));
     1184    uintptr_t cbICacheLine = (uintptr_t)4 << (s_u64CtrEl0 & 0xf);
    11851185
    11861186    uintptr_t pb = (uintptr_t)pv & ~(cbICacheLine - 1);
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