diff options
author | Gabe Black <gabeblack@google.com> | 2020-01-12 23:04:22 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2020-01-13 22:51:42 +0000 |
commit | 7085b8561478fcb416fc1eaaaeb778f89dd4d3c2 (patch) | |
tree | eb9400dcea6c951f8f317ccc13a17f0673d2c077 /configs/example/fs.py | |
parent | b8883f887e4cef97bd75ca2227e47ea3a5d6da63 (diff) | |
download | gem5-7085b8561478fcb416fc1eaaaeb778f89dd4d3c2.tar.xz |
configs: Remove check for kernel in fs.py.
It is *not* true that a kernel is required in FS mode. For example,
in SPARC, gem5 is set up to run actual system firmware which will load
a kernel from the disk image. Other systems can run in a bare metal
mode where they also have no kernel.
If a configuration requires a kernel, it should check for it in C++
where there context lives, not globally in fs.py.
Change-Id: Ib094c29474c248f866bd08d4f975648a2c707a19
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24284
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'configs/example/fs.py')
-rw-r--r-- | configs/example/fs.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index 7efe433eb..e202d7513 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -130,9 +130,6 @@ def build_test_system(np): if options.kernel is not None: test_sys.kernel = binary(options.kernel) - else: - print("Error: a kernel must be provided to run in full system mode") - sys.exit(1) if options.script is not None: test_sys.readfile = options.script @@ -281,9 +278,6 @@ def build_drive_system(np): drive_sys.cpu.connectAllPorts(drive_sys.membus) if options.kernel is not None: drive_sys.kernel = binary(options.kernel) - else: - print("Error: a kernel must be provided to run in full system mode") - sys.exit(1) if ObjectList.is_kvm_cpu(DriveCPUClass): drive_sys.kvm_vm = KvmVM() |