diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2017-05-19 16:55:24 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-19 16:55:24 +0200 |
commit | 27b09f1f1ed29edb9c52ad8414c2344974a07a23 (patch) | |
tree | 442a6e52577778b902e682c8e7be295a4a476dac /src/basic/architecture.h | |
parent | hwdb: Fix mapping for home-key on Cube iWork8 air (#5994) (diff) | |
download | systemd-27b09f1f1ed29edb9c52ad8414c2344974a07a23.tar.xz systemd-27b09f1f1ed29edb9c52ad8414c2344974a07a23.zip |
architecture: add Synopsys DesignWare ARC cores support (#5992)
DesignWare ARC Processors are a family of 32-bit CPUs from Synopsys
used extensively in SoCs of different vendors.
Diffstat (limited to 'src/basic/architecture.h')
-rw-r--r-- | src/basic/architecture.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/basic/architecture.h b/src/basic/architecture.h index db7e03f02a..40a2ce6448 100644 --- a/src/basic/architecture.h +++ b/src/basic/architecture.h @@ -60,6 +60,8 @@ enum { ARCHITECTURE_NIOS2, ARCHITECTURE_RISCV32, ARCHITECTURE_RISCV64, + ARCHITECTURE_ARC, + ARCHITECTURE_ARC_BE, _ARCHITECTURE_MAX, _ARCHITECTURE_INVALID = -1 }; @@ -237,6 +239,14 @@ int uname_architecture(void); # else # error "Unrecognized riscv architecture variant" # endif +#elif defined(__arc__) +# if __BYTE_ORDER == __BIG_ENDIAN +# define native_architecture() ARCHITECTURE_ARC_BE +# define LIB_ARCH_TUPLE "arceb-linux" +# else +# define native_architecture() ARCHITECTURE_ARC +# define LIB_ARCH_TUPLE "arc-linux" +# endif #else # error "Please register your architecture here!" #endif |