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

@@ -174,12 +174,6 @@ Gem5Control::clearDebugFlag(const char *flag)
::gem5::clearDebugFlag(flag);
}
void
Gem5Control::setRemoteGDBPort(unsigned int port)
{
::gem5::setRemoteGDBPort(port);
}
Gem5System *
Gem5Control::makeSystem(const std::string &system_name,
const std::string &instance_name)

View File

@@ -142,10 +142,6 @@ class Gem5Control
virtual void setDebugFlag(const char *flag);
virtual void clearDebugFlag(const char *flag);
/** Choose a base port number for GDB to connect to the model
* (0 disables connections) */
virtual void setRemoteGDBPort(unsigned int port);
/* Register an action to happen at the end of elaboration */
virtual void registerEndOfElaboration(void (*func)());