Ticket #3344: nvtt-arm64.patch
File nvtt-arm64.patch, 2.4 KB (added by , 9 years ago) |
---|
-
libraries/source/nvtt/src/src/nvcore/Debug.cpp
232 232 # elif NV_CPU_PPC 233 233 ucontext_t * ucp = (ucontext_t *)secret; 234 234 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; 235 238 # endif 236 239 # endif 237 240 -
libraries/source/nvtt/src/src/nvcore/nvcore.h
68 68 // NV_CPU_X86_64 69 69 // NV_CPU_PPC 70 70 // NV_CPU_ARM 71 // NV_CPU_AARCH64 71 72 72 73 #define NV_CPU_STRING POSH_CPU_STRING 73 74 … … 79 80 # define NV_CPU_PPC 1 80 81 #elif defined POSH_CPU_STRONGARM 81 82 # define NV_CPU_ARM 1 83 #elif defined POSH_CPU_AARCH64 84 # define NV_CPU_AARCH64 1 82 85 #else 83 86 # error "Unsupported CPU" 84 87 #endif -
libraries/source/nvtt/src/src/nvcore/poshlib/posh.h
485 485 # define POSH_CPU_STRING "ARM" 486 486 #endif 487 487 488 #if defined __aarch64__ 489 # define POSH_CPU_AARCH64 1 490 # define POSH_CPU_STRING "ARM64" 491 #endif 492 488 493 #if defined mips || defined __mips__ || defined __MIPS__ || defined _MIPS 489 494 # define POSH_CPU_MIPS 1 490 495 # if defined _R5900 … … 658 663 ** the MIPS series, so we have to be careful about those. 659 664 ** ---------------------------------------------------------------------------- 660 665 */ 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__ 662 667 # define POSH_ENDIAN_STRING "little" 663 668 # define POSH_LITTLE_ENDIAN 1 664 669 #else