VirtualBox

Changeset 21831 in vbox for trunk/src/recompiler


Ignore:
Timestamp:
Jul 28, 2009 11:57:57 AM (15 years ago)
Author:
vboxsync
Message:

recompiler: correct implementation of testandset()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/qemu-lock.h

    r21581 r21831  
    7676{
    7777
    78     return ASMAtomicCmpXchgU32((uint32_t volatile *)p, 0, 1);
     78    return ASMAtomicCmpXchgU32((volatile uint32_t *)p, 1, 0) ? 0 : 1;
    7979}
    8080#elif defined(__powerpc__)
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