View Issue Details

IDProjectCategoryView StatusLast Update
0000251fileGeneralpublic2021-03-27 20:18
Reportervineetg76 Assigned Tochristos  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.39 
Fixed in Version5.40 
Summary0000251: elf files for Synopsys ARC are not identified correctly
DescriptionThere are 3 variants of Synopsys ARC ISA: ARCompact, ARCv2 and ARCv3 and processors based on them
However current implementation of file is not identifying them ideally:

1. ARCompact based elf is incorrectly identified as legacy ARC Tangent A5 which don't exist.
2. ARCv2 is not even listed
3. ARCv3 is incorrectly identified as ARCv2.3

Additional InformationI'm attaching a patch which addresses the above.
TagsNo tags attached.

Activities

vineetg76

2021-03-25 22:47

reporter  

0001-Fix-names-for-Synopsys-ARC-cores.patch (1,858 bytes)   
From e23e183906dce9399f80b2c9c0cff37d3f5f0ec5 Mon Sep 17 00:00:00 2001
From: Vineet Gupta <vgupta@synopsys.com>
Date: Thu, 25 Mar 2021 12:35:12 -0700
Subject: [PATCH] Fix names for Synopsys ARC cores

 - 93 was (mis)used all legacy ISA/core: A4, A5...
   Only ARCompact ISA based cores use this machine-id, so rename to
   reflect as such.

 - 195: ARCv2 ISA is missing

 - 253/255: ISA is not ARCv2.3 but ARCv3

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 magic/Magdir/elf | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/magic/Magdir/elf b/magic/Magdir/elf
index 59de49d9d53f..560054bc7619 100644
--- a/magic/Magdir/elf
+++ b/magic/Magdir/elf
@@ -195,7 +195,7 @@
 >18	leshort		90		Matsushita MN10200,
 >18	leshort		91		picoJava,
 >18	leshort		92		OpenRISC,
->18	leshort		93		ARC Cores Tangent-A5,
+>18	leshort		93		Synopsys ARCompact ARC700 cores,
 >18	leshort		94		Tensilica Xtensa,
 >18	leshort		95		Alphamosaic VideoCore,
 >18	leshort		96		Thompson Multimedia,
@@ -265,6 +265,7 @@
 >18	leshort		189		Xilinx MicroBlaze 32-bit RISC,
 >18	leshort		190		NVIDIA CUDA architecture,
 >18	leshort		191		Tilera TILE-Gx,
+>18	leshort		195		Synopsys ARCv2/HS3x/HS4x cores,
 >18	leshort		197		Renesas RL78 family,
 >18	leshort		199		Renesas 78K0R,
 >18	leshort		200		Freescale 56800EX,
@@ -297,9 +298,9 @@
 >18	leshort		250		Netronome Flow Processor,
 >18	leshort		251             NEC Vector Engine,
 >18	leshort		252		C-SKY processor family,
->18	leshort		253		Synopsys ARCv2.3 64-bit,
+>18	leshort		253		Synopsys ARCv3 64-bit ISA/HS6x cores,
 >18	leshort		254		MOS Technology MCS 6502 processor,
->18	leshort		255		Synopsys ARCv2.3 32-bit,
+>18	leshort		255		Synopsys ARCv3 32-bit,
 >18	leshort		256		Kalray VLIW core of the MPPA family,
 >18	leshort		257		WDC 65816/65C816,
 >18	leshort		258		Loongson Loongarch,
-- 
2.25.1

christos

2021-03-27 20:18

manager   ~0003578

Fixed, thanks!

Issue History

Date Modified Username Field Change
2021-03-25 22:47 vineetg76 New Issue
2021-03-25 22:47 vineetg76 File Added: 0001-Fix-names-for-Synopsys-ARC-cores.patch
2021-03-27 20:18 christos Assigned To => christos
2021-03-27 20:18 christos Status new => assigned
2021-03-27 20:18 christos Status assigned => resolved
2021-03-27 20:18 christos Resolution open => fixed
2021-03-27 20:18 christos Fixed in Version => 5.40
2021-03-27 20:18 christos Note Added: 0003578