Bobby R. Bruce has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/49323 )


12 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Change subject: python: Add optional 'kernel_args' to x86's `set_workload`
......................................................................

python: Add optional 'kernel_args' to x86's `set_workload`

This optional argument allows a user to pass additional arguments to the
kernel.

Change-Id: Icbc36ab265e5acf6323fd340c0036c2acd35b3a6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49323
Tested-by: kokoro <[email protected]>
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
---
M components_library/boards/x86_board.py
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass




diff --git a/components_library/boards/x86_board.py b/components_library/boards/x86_board.py
index 6470379..fe5b646 100644
--- a/components_library/boards/x86_board.py
+++ b/components_library/boards/x86_board.py
@@ -63,7 +63,7 @@
 from ..runtime import get_runtime_isa

 import os
-from typing import Optional, Sequence
+from typing import List, Optional, Sequence


 class X86Board(SimpleBoard):
@@ -278,6 +278,7 @@
         kernel: AbstractResource,
         disk_image: AbstractResource,
         command: Optional[str] = None,
+        kernel_args: Optional[List[str]] = [],
     ):
         """Setup the full system files

@@ -295,6 +296,9 @@
:param disk_image: A disk image resource containing the OS data. The
             first partition should be the root partition.
:param command: The command(s) to run with bash once the OS is booted + :param kernel_args: Additional arguments to be passed to the kernel.
+        `earlyprintk=ttyS0 console=ttyS0 lpj=7999923 root=/dev/hda1` are
+ already passed. This parameter is used to pass additional arguments.
         """

         # Set the Linux kernel to use.
@@ -307,7 +311,7 @@
                 "console=ttyS0",
                 "lpj=7999923",
                 "root=/dev/hda1",
-            ]
+            ] + kernel_args
         )

         # Create the Disk image SimObject.

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/49323
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Icbc36ab265e5acf6323fd340c0036c2acd35b3a6
Gerrit-Change-Number: 49323
Gerrit-PatchSet: 14
Gerrit-Owner: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to