View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000251 | file | General | public | 2021-03-25 22:47 | 2021-03-27 20:18 |
Reporter | vineetg76 | Assigned To | christos | ||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.39 | ||||
Fixed in Version | 5.40 | ||||
Summary | 0000251: elf files for Synopsys ARC are not identified correctly | ||||
Description | There 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 Information | I'm attaching a patch which addresses the above. | ||||
Tags | No tags attached. | ||||
|
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 |
|
Fixed, thanks! |
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 |