sim: allow specifying remote gdb port for each workload

In a platform with multiple systems, we may want to specify the
remote gdb port for each system. This change makes it
possible to specify the port number at each Workload instance.

Change-Id: I755b3960ee920ae5289819aa05d98902614a5615
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/65151
Maintainer: Earl Ou <shunhsingou@google.com>
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Earl Ou
2022-10-31 22:36:29 -07:00
parent 540e6515de
commit 5bf88bf7a1
20 changed files with 36 additions and 53 deletions

View File

@@ -36,6 +36,9 @@ class Workload(SimObject):
abstract = True
wait_for_remote_gdb = Param.Bool(False, "Wait for a remote GDB connection")
remote_gdb_port = Param.Int(
7000, "Default port number used for remote GDB connection"
)
@cxxMethod
def sendToGdb(self, message):