Ticket #3344: nvtt-arm64.patch

File nvtt-arm64.patch, 2.4 KB (added by Martin Michlmayr, 9 years ago)
  • libraries/source/nvtt/src/src/nvcore/Debug.cpp

     
    232232#       elif NV_CPU_PPC
    233233            ucontext_t * ucp = (ucontext_t *)secret;
    234234            return (void *) ucp->uc_mcontext.regs->nip;
     235#       elif NV_CPU_AARCH64
     236            ucontext_t * ucp = (ucontext_t *)secret;
     237            return (void *) ucp->uc_mcontext.pc;
    235238#       endif
    236239#   endif
    237240       
  • libraries/source/nvtt/src/src/nvcore/nvcore.h

     
    6868// NV_CPU_X86_64
    6969// NV_CPU_PPC
    7070// NV_CPU_ARM
     71// NV_CPU_AARCH64
    7172
    7273#define NV_CPU_STRING   POSH_CPU_STRING
    7374
     
    7980#   define NV_CPU_PPC 1
    8081#elif defined POSH_CPU_STRONGARM
    8182#   define NV_CPU_ARM 1
     83#elif defined POSH_CPU_AARCH64
     84#   define NV_CPU_AARCH64 1
    8285#else
    8386#   error "Unsupported CPU"
    8487#endif
  • libraries/source/nvtt/src/src/nvcore/poshlib/posh.h

     
    485485#  define POSH_CPU_STRING "ARM"
    486486#endif
    487487
     488#if defined __aarch64__
     489#  define POSH_CPU_AARCH64 1
     490#  define POSH_CPU_STRING "ARM64"
     491#endif
     492
    488493#if defined mips || defined __mips__ || defined __MIPS__ || defined _MIPS
    489494#  define POSH_CPU_MIPS 1
    490495#  if defined _R5900
     
    658663** the MIPS series, so we have to be careful about those.
    659664** ----------------------------------------------------------------------------
    660665*/
    661 #if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__
     666#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__
    662667#  define POSH_ENDIAN_STRING "little"
    663668#  define POSH_LITTLE_ENDIAN 1
    664669#else