config: remove dead code in fs.py
authorNayan Deshmukh <nayan26deshmukh@gmail.com>
Sun, 4 Feb 2018 12:28:46 +0000 (17:58 +0530)
committerNayan Deshmukh <nayan26deshmukh@gmail.com>
Mon, 5 Feb 2018 17:36:55 +0000 (17:36 +0000)
We have not added the --generate-dtb option for non-ARM systems and
hence this case becomes dead code. It also leads to error on non-ARM
systems as is tries to access a non existent field.

Change-Id: Ia926bd0c61efa275bc5e3864b8a9c3ffb7aa3cb5
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/7801
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

configs/example/fs.py

index 031457c8e5ca7a3adef5e1ec9c57cef2752a5a9c..f7115eb4887240e20761e2912648621941f790fd 100644 (file)
@@ -392,8 +392,5 @@ if buildEnv['TARGET_ISA'] == "arm" and options.generate_dtb:
             sys = getattr(root, sysname)
             sys.dtb_filename = create_dtb_for_system(sys, '%s.dtb' % sysname)
 
-elif buildEnv['TARGET_ISA'] != "arm" and options.generate_dtb:
-    fatal("Can only generate dtb files for ARM systems.")
-
 Simulation.setWorkCountOptions(test_sys, options)
 Simulation.run(options, root, test_sys, FutureClass)