build: Add initial ARM64 target.
It will probably be just stubs for the significant future, but, here it is anyway. Regarding the naming: Yes, the official name is "aarch64." However, Linux, FreeBSD, and Zircon all call it "arm64", and so we will do the same. I've configured it initially to be a Clang-only port, making no changes to GCC buildtools whatsoever here. We'll see if that sticks, however.
This commit is contained in:
@@ -56,6 +56,11 @@
|
||||
# define __HAIKU_ARCH_ABI "armeb"
|
||||
# define __HAIKU_ARCH_ARM 1
|
||||
# define __HAIKU_BIG_ENDIAN 1
|
||||
#elif defined(__arm64__)
|
||||
# define __HAIKU_ARCH arm64
|
||||
# define __HAIKU_ARCH_ABI "arm64"
|
||||
# define __HAIKU_ARCH_ARM64 1
|
||||
# define __HAIKU_ARCH_BITS 64
|
||||
#else
|
||||
# error Unsupported architecture!
|
||||
#endif
|
||||
|
||||
@@ -186,7 +186,8 @@ typedef struct {
|
||||
#define EM_BLACKFIN 106 /* Analog Devices Blackfin (DSP) processor */
|
||||
#define EM_ARCA 109 /* Arca RISC Microprocessor */
|
||||
#define EM_VIDCORE3 137 /* Broadcom VideoCore III */
|
||||
#define EM_AARCH64 183 /* ARM 64 bit */
|
||||
#define EM_ARM64 183 /* ARM 64 bit */
|
||||
#define EM_AARCH64 EM_ARM64
|
||||
#define EM_AVR32 185 /* AVR-32 */
|
||||
#define EM_STM8 186 /* ST STM8S */
|
||||
#define EM_CUDA 190 /* Nvidia CUDA */
|
||||
|
||||
Reference in New Issue
Block a user