Revisión | aa9e34c70f5173269f1e81f9ce08661c0f357617 (tree) |
---|---|
Tiempo | 2022-09-27 19:01:22 |
Autor | Sergey Matyukevich <sergey.matyukevich@syno...> |
Commiter | Waldemar Brodkorb |
arc: minor cleanup for ARCv2
Add missing ARCv2 check in MATCH_MACHINE macro.
Update comment for EM_ARCV2 define.
Signed-off-by: Sergey Matyukevich <sergey.matyukevich@synopsys.com>
Signed-off-by: Pavel Kozlov <pavel.kozlov@synopsys.com>
@@ -270,7 +270,7 @@ typedef struct | ||
270 | 270 | #define EM_METAG 174 /* Imagination Technologies Meta */ |
271 | 271 | #define EM_AARCH64 183 /* ARM AARCH64 */ |
272 | 272 | #define EM_MICROBLAZE 189 /* Xilinx Microblaze */ |
273 | -#define EM_ARCV2 195 /* ARCv2 Cores */ | |
273 | +#define EM_ARCV2 195 /* Synopsys ARCv2 Cores */ | |
274 | 274 | #define EM_RISCV 243 /* RISC-V */ |
275 | 275 | #define EM_CSKY 252 /* C-SKY Cores */ |
276 | 276 | #define EM_KVX 256 /* Kalray VLIW core of the MPPA processor family */ |
@@ -30,7 +30,7 @@ | ||
30 | 30 | #endif |
31 | 31 | |
32 | 32 | #if defined(__arc__) |
33 | -#define MATCH_MACHINE(x) (x == EM_ARCOMPACT) | |
33 | +#define MATCH_MACHINE(x) (x == EM_ARCOMPACT || x == EM_ARCV2) | |
34 | 34 | #define ELFCLASSM ELFCLASS32 |
35 | 35 | #endif |
36 | 36 |