VirtualBox

Changeset 29266 in vbox for trunk


Ignore:
Timestamp:
May 9, 2010 9:20:33 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61350
Message:

fix 64-bit sparc detection and correct the break instruction for same.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm.h

    r29263 r29266  
    27722772#  endif
    27732773# elif defined(RT_ARCH_SPARC64)
    2774 #  define ASMBreakpoint()       do { __asm__ __volatile__("illtrap $0\n\t") } while (0) /** @todo Sparc64: this is just a wild guess. */
     2774#  define ASMBreakpoint()       do { __asm__ __volatile__("illtrap 0\n\t") } while (0) /** @todo Sparc64: this is just a wild guess. */
    27752775# elif defined(RT_ARCH_SPARC)
    27762776#  define ASMBreakpoint()       do { __asm__ __volatile__("unimp 0\n\t"); } while (0)   /** @todo Sparc: this is just a wild guess (same as Sparc64, just different name). */
  • trunk/include/iprt/cdefs.h

    r29263 r29266  
    111111# elif defined(__i386__) || defined(_M_IX86) || defined(__X86__)
    112112#  define RT_ARCH_X86
    113 # elif defined(__sparc64__)
     113# elif defined(__sparcv9)
    114114#  define RT_ARCH_SPARC64
    115115# elif defined(__sparc__)
     
    16711671#  endif
    16721672# elif defined(RT_ARCH_SPARC64)
    1673 #  define RT_BREAKPOINT()       __asm__ __volatile__("illtrap $0\n\t")  /** @todo Sparc64: this is just a wild guess. */
     1673#  define RT_BREAKPOINT()       __asm__ __volatile__("illtrap 0\n\t")   /** @todo Sparc64: this is just a wild guess. */
    16741674# elif defined(RT_ARCH_SPARC)
    16751675#  define RT_BREAKPOINT()       __asm__ __volatile__("unimp 0\n\t")     /** @todo Sparc: this is just a wild guess (same as Sparc64, just different name). */
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