From: Yu-hsin Wang Date: Tue, 3 Nov 2020 01:49:48 +0000 (+0800) Subject: configs: Add dtb-gen to fs_bigLITTLE.py X-Git-Tag: develop-gem5-snapshot~519 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d20460c22f959bbe0916e360cc136b1f5c54f2e;p=gem5.git configs: Add dtb-gen to fs_bigLITTLE.py Change-Id: I1956e98d0fa507cc342e926b61d69fb967a64556 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36955 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini Tested-by: kokoro --- diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py index 29f5c6b78..76de0ebd1 100644 --- a/configs/example/arm/fs_bigLITTLE.py +++ b/configs/example/arm/fs_bigLITTLE.py @@ -213,6 +213,8 @@ def addOptions(parser): "only parameters of its children.") parser.add_argument("--vio-9p", action="store_true", help=Options.vio_9p_help) + parser.add_argument("--dtb-gen", action="store_true", + help="Doesn't run simulation, it generates a DTB only") return parser def build(options): @@ -367,6 +369,10 @@ def run(checkpoint_dir=m5.options.outdir): sys.exit(event.getCode()) +def generateDtb(root): + root.system.generateDtb(os.path.join(m5.options.outdir, "system.dtb")) + + def main(): parser = argparse.ArgumentParser( description="Generic ARM big.LITTLE configuration") @@ -375,7 +381,10 @@ def main(): root = build(options) root.apply_config(options.param) instantiate(options) - run() + if options.dtb_gen: + generateDtb(root) + else: + run() if __name__ == "__m5_main__":