diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-11-10 13:20:22 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-11-10 13:20:22 -0500 |
commit | a7a0cb6c92ea76b580b3a1aab5185115459bd7e5 (patch) | |
tree | bbfd2c16eb0b6260fa485d50875f1d0908a4d180 /include | |
parent | 364081efa5d629acfcc37f1f8093690cc198cb88 (diff) | |
download | gdb-a7a0cb6c92ea76b580b3a1aab5185115459bd7e5.zip gdb-a7a0cb6c92ea76b580b3a1aab5185115459bd7e5.tar.gz gdb-a7a0cb6c92ea76b580b3a1aab5185115459bd7e5.tar.bz2 |
bfd, binutils: add gfx11 amdgpu architectures
Teach bfd and readelf about some recent gfx11 architectures. This code
is taken from the rocgdb 5.7.x branch [1].
[1] https://github.com/rocm-Developer-Tools/rocgdb/tree/rocm-5.7.x
bfd/ChangeLog:
* archures.c (bfd_mach_amdgcn_gfx1100, bfd_mach_amdgcn_gfx1101,
bfd_mach_amdgcn_gfx1102): New.
* bfd-in2.h (bfd_mach_amdgcn_gfx1100, bfd_mach_amdgcn_gfx1101,
bfd_mach_amdgcn_gfx1102): New.
* cpu-amdgcn.c (arch_info_struct): Add entries for
bfd_mach_amdgcn_gfx1100, bfd_mach_amdgcn_gfx1101,
bfd_mach_amdgcn_gfx1102.
binutils/ChangeLog:
* readelf.c (decode_AMDGPU_machine_flags): Handle gfx1100,
gfx1101, gfx1102.
include/ChangeLog:
* elf/amdgpu.h (EF_AMDGPU_MACH_AMDGCN_GFX1100,
EF_AMDGPU_MACH_AMDGCN_GFX1101,
EF_AMDGPU_MACH_AMDGCN_GFX1102): New.
Change-Id: I95a8a62942e359781a1c9fa2079950fbcf2a78b8
Co-Authored-By: Laurent Morichetti <laurent.morichetti@amd.com>
Cc: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/elf/amdgpu.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 7ea77f8..dbef999 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2023-11-10 Simon Marchi <simon.marchi@efficios.com> + + * elf/amdgpu.h (EF_AMDGPU_MACH_AMDGCN_GFX1100, + EF_AMDGPU_MACH_AMDGCN_GFX1101, + EF_AMDGPU_MACH_AMDGCN_GFX1102): New. + 2023-11-10 Nick Clifton <nickc@redhat.com> * bfdlink.h (struct bfd_link_info): Update descriptions of the diff --git a/include/elf/amdgpu.h b/include/elf/amdgpu.h index d442441..1572035 100644 --- a/include/elf/amdgpu.h +++ b/include/elf/amdgpu.h @@ -67,8 +67,11 @@ #define EF_AMDGPU_MACH_AMDGCN_GFX1034 0x03e #define EF_AMDGPU_MACH_AMDGCN_GFX90A 0x03f #define EF_AMDGPU_MACH_AMDGCN_GFX940 0x040 +#define EF_AMDGPU_MACH_AMDGCN_GFX1100 0x041 #define EF_AMDGPU_MACH_AMDGCN_GFX1013 0x042 #define EF_AMDGPU_MACH_AMDGCN_GFX1036 0x045 +#define EF_AMDGPU_MACH_AMDGCN_GFX1101 0x046 +#define EF_AMDGPU_MACH_AMDGCN_GFX1102 0x047 /* Code object v3 machine flags. */ |