VirtualBox

Ignore:
Timestamp:
Aug 5, 2012 4:26:25 PM (12 years ago)
Author:
vboxsync
Message:

REM: Initial changes to make it work (seemingly) with MinGW-w64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/dyngen-exec.h

    r37689 r42601  
    120120   Subtracting one gets us the call instruction itself.  */
    121121#if defined(__s390__) && !defined(__s390x__)
    122 # define GETPC() ((void*)(((unsigned long)__builtin_return_address(0) & 0x7fffffffUL) - 1))
     122# define GETPC() ((void*)(((uintptr_t)__builtin_return_address(0) & 0x7fffffffUL) - 1))
    123123#elif defined(__arm__)
    124124/* Thumb return addresses have the low bit set, so we need to subtract two.
    125125   This is still safe in ARM mode because instructions are 4 bytes.  */
    126 # define GETPC() ((void *)((unsigned long)__builtin_return_address(0) - 2))
     126# define GETPC() ((void *)((uintptr_t)__builtin_return_address(0) - 2))
    127127#else
    128 # define GETPC() ((void *)((unsigned long)__builtin_return_address(0) - 1))
     128# define GETPC() ((void *)((uintptr_t)__builtin_return_address(0) - 1))
    129129#endif
    130130
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