Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/48966 )
Change subject: scons: Remove cruft from the_gpu_isa.hh.
......................................................................
scons: Remove cruft from the_gpu_isa.hh.
Some values in the_gpu_isa.hh were simply copy/pasted from the_isa.hh,
and were not used at all in the code. This change removes them, leaving
only the definition of the TheGpuISA namespace.
Change-Id: I0d66ae84d78e990088eb8099c678b9cf1cc42748
---
M src/SConscript
1 file changed, 0 insertions(+), 22 deletions(-)
diff --git a/src/SConscript b/src/SConscript
index 0dd9c69..c25e3ef 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -778,39 +778,17 @@
MakeAction(makeTheISA, Transform("CFG ISA", 0)))
def makeTheGPUISA(source, target, env):
- isas = sorted(set(env.Split('${ALL_ISAS}')))
target_gpu_isa = env['TARGET_GPU_ISA']
- def define(isa):
- return str(isa.upper()) + '_ISA'
def namespace(isa):
return isa[0].upper() + isa[1:].lower() + 'ISA'
-
code = code_formatter()
code('''\
#ifndef __CONFIG_THE_GPU_ISA_HH__
#define __CONFIG_THE_GPU_ISA_HH__
-''')
-
- # create defines for the preprocessing and compile-time determination
- for i,isa in enumerate(isas):
- code('#define $0 $1', define(isa), i + 1)
- code()
-
- # create an enum for any run-time determination of the ISA, we
- # reuse the same name as the namespaces
- code('enum class GPUArch {')
- for isa in isas:
- code(' $0 = $1,', namespace(isa), define(isa))
- code('};')
-
- code('''
-
-#define THE_GPU_ISA ${{define(target_gpu_isa)}}
#define TheGpuISA ${{namespace(target_gpu_isa)}}
-#define THE_GPU_ISA_STR "${{target_gpu_isa}}"
#endif // __CONFIG_THE_GPU_ISA_HH__''')
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48966
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I0d66ae84d78e990088eb8099c678b9cf1cc42748
Gerrit-Change-Number: 48966
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s