summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/example/arm/fs_bigLITTLE.py11
-rw-r--r--configs/example/fs.py11
2 files changed, 2 insertions, 20 deletions
diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py
index 8cf89e3c7..f363872a3 100644
--- a/configs/example/arm/fs_bigLITTLE.py
+++ b/configs/example/arm/fs_bigLITTLE.py
@@ -261,16 +261,7 @@ def build(options):
if options.dtb is not None:
system.dtb_filename = SysPaths.binary(options.dtb)
else:
- def create_dtb_for_system(system, filename):
- state = FdtState(addr_cells=2, size_cells=2, cpu_cells=1)
- rootNode = system.generateDeviceTree(state)
-
- fdt = Fdt()
- fdt.add_rootnode(rootNode)
- dtb_filename = os.path.join(m5.options.outdir, filename)
- return fdt.writeDtbFile(dtb_filename)
-
- system.dtb_filename = create_dtb_for_system(system, 'system.dtb')
+ system.generateDtb(m5.options.outdir, 'system.dtb')
return root
diff --git a/configs/example/fs.py b/configs/example/fs.py
index 4d2165884..05eca87fb 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -360,19 +360,10 @@ if buildEnv['TARGET_ISA'] == "arm" and not options.bare_metal \
"with generation functionality.")
# Generate a Device Tree
- def create_dtb_for_system(system, filename):
- state = FdtState(addr_cells=2, size_cells=2, cpu_cells=1)
- rootNode = system.generateDeviceTree(state)
-
- fdt = Fdt()
- fdt.add_rootnode(rootNode)
- dtb_filename = os.path.join(m5.options.outdir, filename)
- return fdt.writeDtbFile(dtb_filename)
-
for sysname in ('system', 'testsys', 'drivesys'):
if hasattr(root, sysname):
sys = getattr(root, sysname)
- sys.dtb_filename = create_dtb_for_system(sys, '%s.dtb' % sysname)
+ sys.generateDtb(m5.options.outdir, '%s.dtb' % sysname)
Simulation.setWorkCountOptions(test_sys, options)
Simulation.run(options, root, test_sys, FutureClass)