1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 564232 - Add cpu risc for RISC-V need to support.

Change-Id: Ib62ed14f3c0dbe4375da41dba7209b27e034c53e
Signed-off-by: Aijun Shi <Aijun.Shi@windriver.com>
This commit is contained in:
Aijun Shi 2020-06-16 12:50:21 +08:00 committed by Jonah Graham
parent 8b039257b7
commit 30845347d0

View file

@ -158,6 +158,9 @@ public class Elf {
/** @since 6.0 */
public static final int EM_AARCH64 = 183;
/** @since 7.0 */
public static final int EM_RISCV = 243;
public static final int EM_NIOS = 0xFEBB;
public static final int EM_CYGNUS_POWERPC = 0x9025;
public static final int EM_CYGNUS_M32R = 0x9041;
@ -908,6 +911,9 @@ public class Elf {
case Elf.ELFhdr.EM_RS08:
attrib.cpu = "rs08"; //$NON-NLS-1$
break;
case Elf.ELFhdr.EM_RISCV:
attrib.cpu = "riscv"; //$NON-NLS-1$
break;
case Elf.ELFhdr.EM_NONE:
default:
attrib.cpu = "none"; //$NON-NLS-1$