From 44227c7b6a14f7f45152151f1c529e2108c36586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 29 Oct 2019 00:00:00 +0000 Subject: [PATCH] gem5: update to 239054f48439c18b93e1a70ff29dbcb0c4742cff fs_bigLITTLE: no patches needed anymore, we now have the --root option. --- README.adoc | 10 +--------- patches/manual/gem5-biglittle.patch | 13 ------------- run | 6 +++++- submodules/gem5 | 2 +- 4 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 patches/manual/gem5-biglittle.patch diff --git a/README.adoc b/README.adoc index c2fba55..b8e8e55 100644 --- a/README.adoc +++ b/README.adoc @@ -12161,15 +12161,7 @@ The out of build tree is required, because otherwise Buildroot would copy the ou By default, we use `configs/example/fs.py` script. -The `--gem5-script biglittle` option enables the alternative `configs/example/arm/fs_bigLITTLE.py` script instead. - -First apply: - -.... -patch -d "$(./getvar gem5_source_dir)" -p 1 < patches/manual/gem5-biglittle.patch -.... - -then: +The `--gem5-script biglittle` option enables the alternative `configs/example/arm/fs_bigLITTLE.py` script instead: .... ./run --arch aarch64 --emulator gem5 --gem5-script biglittle diff --git a/patches/manual/gem5-biglittle.patch b/patches/manual/gem5-biglittle.patch deleted file mode 100644 index 0272b90..0000000 --- a/patches/manual/gem5-biglittle.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py -index 7d66c03a6..d71e714fe 100644 ---- a/configs/example/arm/fs_bigLITTLE.py -+++ b/configs/example/arm/fs_bigLITTLE.py -@@ -194,7 +194,7 @@ def build(options): - "norandmaps", - "loglevel=8", - "mem=%s" % default_mem_size, -- "root=/dev/vda1", -+ "root=/dev/vda", - "rw", - "init=%s" % options.kernel_init, - "vmalloc=768MB", diff --git a/run b/run index d0daf4f..a3cd268 100755 --- a/run +++ b/run @@ -526,7 +526,10 @@ Extra options to append at the end of the emulator command line. '--machine-type', self.env['machine'], LF, ]) if self.env['baremetal'] is None: - cmd.extend(['--command-line', 'earlyprintk=pl011,0x1c090000 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli), LF]) + cmd.extend([ + '--command-line', + 'earlyprintk=pl011,0x1c090000 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli), LF + ]) dtb = None if self.env['dtb'] is not None: dtb = self.env['dtb'] @@ -574,6 +577,7 @@ Extra options to append at the end of the emulator command line. '--disk', self.env['disk_image'], LF, '--kernel', self.env['image'], LF, '--little-cpus', str(self.env['cpus'] // 2), LF, + '--root', '/dev/vda', LF, ]) if self.env['dtb']: cmd.extend([ diff --git a/submodules/gem5 b/submodules/gem5 index 08c79a1..239054f 160000 --- a/submodules/gem5 +++ b/submodules/gem5 @@ -1 +1 @@ -Subproject commit 08c79a194d1a3430801c04f37d13216cc9ec1da3 +Subproject commit 239054f48439c18b93e1a70ff29dbcb0c4742cff