arch: Move many of the generic files outside an NULL guard.
authorGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 00:59:31 +0000 (17:59 -0700)
committerGabe Black <gabe.black@gmail.com>
Thu, 29 Oct 2020 20:23:35 +0000 (20:23 +0000)
These files can be compiled successfully even if the ISA is the NULL
ISA.

Change-Id: I67133ea674f678f33b0aa1ef55af719f2869241d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34169
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/generic/SConscript

index 1df17e0de5690d2454044f50c1b5c3ec019f3525..60b24d0cdef35962b4c0f1d08877ee24432f37f3 100644 (file)
 Import('*')
 
 Source('htm.cc')
-
-if env['TARGET_ISA'] == 'null':
-    Return()
-
-Source('decode_cache.cc')
-Source('decoder.cc')
 Source('mmu.cc')
 
 SimObject('BaseInterrupts.py')
@@ -54,3 +48,9 @@ SimObject('BaseTLB.py')
 SimObject('ISACommon.py')
 
 DebugFlag('TLB')
+
+if env['TARGET_ISA'] == 'null':
+    Return()
+
+Source('decode_cache.cc')
+Source('decoder.cc')