mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-26 18:15:40 +00:00
Update AMDGPU macros.
The values are based on LLVM's ELF.h https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/BinaryFormat/ELF.h Related issue: ROCm-Developer-Tools/HIP#2259
This commit is contained in:
parent
2af3f196a5
commit
028b4117fa
@ -400,11 +400,31 @@ typedef uint64_t Elf64_Off;
|
||||
// shaders and compute kernels
|
||||
#define ELFOSABI_AMDGPU_MESA3D 66
|
||||
|
||||
#define ELFABIVERSION_AMDGPU_HSA_V2 0
|
||||
#define ELFABIVERSION_AMDGPU_HSA_V3 1
|
||||
#define ELFABIVERSION_AMDGPU_HSA_V4 2
|
||||
|
||||
// AMDGPU specific e_flags
|
||||
#define EF_AMDGPU_MACH 0x0ff // AMDGPU processor selection mask.
|
||||
// Indicates if the XNACK target feature is
|
||||
// enabled for all code contained in the ELF.
|
||||
#define EF_AMDGPU_XNACK 0x100
|
||||
|
||||
#define EF_AMDGPU_FEATURE_XNACK_V2 0x01
|
||||
#define EF_AMDGPU_FEATURE_TRAP_HANDLER_V2 0x02
|
||||
#define EF_AMDGPU_FEATURE_XNACK_V3 0x100
|
||||
#define EF_AMDGPU_FEATURE_SRAMECC_V3 0x200
|
||||
#define EF_AMDGPU_FEATURE_XNACK_V4 0x300
|
||||
#define EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4 0x000
|
||||
#define EF_AMDGPU_FEATURE_XNACK_ANY_V4 0x100
|
||||
#define EF_AMDGPU_FEATURE_XNACK_OFF_V4 0x200
|
||||
#define EF_AMDGPU_FEATURE_XNACK_ON_V4 0x300
|
||||
#define EF_AMDGPU_FEATURE_SRAMECC_V4 0xc00
|
||||
#define EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4 0x000
|
||||
#define EF_AMDGPU_FEATURE_SRAMECC_ANY_V4 0x400
|
||||
#define EF_AMDGPU_FEATURE_SRAMECC_OFF_V4 0x800
|
||||
#define EF_AMDGPU_FEATURE_SRAMECC_ON_V4 0xc00
|
||||
|
||||
// AMDGPU processors
|
||||
#define EF_AMDGPU_MACH_NONE 0x000 // Unspecified processor.
|
||||
#define EF_AMDGPU_MACH_R600_R600 0x001
|
||||
@ -427,25 +447,46 @@ typedef uint64_t Elf64_Off;
|
||||
#define EF_AMDGPU_MACH_R600_RESERVED_LAST 0x01f
|
||||
#define EF_AMDGPU_MACH_R600_FIRST EF_AMDGPU_MACH_R600_R600
|
||||
#define EF_AMDGPU_MACH_R600_LAST EF_AMDGPU_MACH_R600_TURKS
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX600 0x020
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX601 0x021
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX700 0x022
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX701 0x023
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX702 0x024
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX703 0x025
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX704 0x026
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX801 0x028
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX802 0x029
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX803 0x02a
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX810 0x02b
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX900 0x02c
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX902 0x02d
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX904 0x02e
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX906 0x02f
|
||||
#define EF_AMDGPU_MACH_AMDGCN_RESERVED0 0x027
|
||||
#define EF_AMDGPU_MACH_AMDGCN_RESERVED1 0x030
|
||||
#define EF_AMDGPU_MACH_AMDGCN_FIRST EF_AMDGPU_MACH_AMDGCN_GFX600
|
||||
#define EF_AMDGPU_MACH_AMDGCN_LAST EF_AMDGPU_MACH_AMDGCN_GFX906
|
||||
|
||||
// AMDGCN-based processors.
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX600 0x020
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX601 0x021
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX700 0x022
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX701 0x023
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX702 0x024
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX703 0x025
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX704 0x026
|
||||
#define EF_AMDGPU_MACH_AMDGCN_RESERVED_0X27 0x027
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX801 0x028
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX802 0x029
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX803 0x02a
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX810 0x02b
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX900 0x02c
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX902 0x02d
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX904 0x02e
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX906 0x02f
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX908 0x030
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX909 0x031
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX90C 0x032
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1010 0x033
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1011 0x034
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1012 0x035
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1030 0x036
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1031 0x037
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1032 0x038
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1033 0x039
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX602 0x03a
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX705 0x03b
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX805 0x03c
|
||||
#define EF_AMDGPU_MACH_AMDGCN_RESERVED_0X3D 0x03d
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1034 0x03e
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX90A 0x03f
|
||||
#define EF_AMDGPU_MACH_AMDGCN_RESERVED_0X40 0x040
|
||||
#define EF_AMDGPU_MACH_AMDGCN_RESERVED_0X41 0x041
|
||||
#define EF_AMDGPU_MACH_AMDGCN_GFX1013 0x042
|
||||
// First/last AMDGCN-based processors.
|
||||
#define EF_AMDGPU_MACH_AMDGCN_FIRST EF_AMDGPU_MACH_AMDGCN_GFX600
|
||||
#define EF_AMDGPU_MACH_AMDGCN_LAST EF_AMDGPU_MACH_AMDGCN_GFX1013
|
||||
|
||||
/////////////////////
|
||||
// Sections constants
|
||||
|
Loading…
Reference in New Issue
Block a user