File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ GET_U64_FROM_ADDR(uint32 *addr)
182182#define E_MACHINE_MIPS_X 51 /* Stanford MIPS-X */
183183#define E_MACHINE_X86_64 62 /* AMD x86-64 architecture */
184184#define E_MACHINE_XTENSA 94 /* Tensilica Xtensa Architecture */
185+ #define E_MACHINE_RISCV 243 /* RISC-V 32/64 */
185186#define E_MACHINE_WIN_X86_64 0x8664 /* Windowx x86-64 architecture */
186187
187188/* Legal values for e_version */
@@ -257,6 +258,9 @@ get_aot_file_target(AOTTargetInfo *target_info,
257258 case E_MACHINE_XTENSA :
258259 machine_type = "xtensa" ;
259260 break ;
261+ case E_MACHINE_RISCV :
262+ machine_type = "riscv" ;
263+ break ;
260264 default :
261265 set_error_buf_v (error_buf , error_buf_size ,
262266 "unknown machine type %d" ,
You can’t perform that action at this time.
0 commit comments