Jimmy Situ has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/11929

Change subject: util: Add switchcpu to util/m5
......................................................................

util: Add switchcpu to util/m5

Change-Id: I8972000b8efdd5ace31a1e8160bd5c9acfb1516d
---
M util/m5/m5.c
1 file changed, 10 insertions(+), 0 deletions(-)



diff --git a/util/m5/m5.c b/util/m5/m5.c
index 48b8ed9..d6c9244 100644
--- a/util/m5/m5.c
+++ b/util/m5/m5.c
@@ -212,6 +212,15 @@
 }

 void
+do_switch_cpu(int argc, char *argv[])
+{
+    if (argc > 0)
+        usage();
+
+    m5_switch_cpu();
+}
+
+void
 do_read_file(int argc, char *argv[])
 {
     if (argc > 0)
@@ -352,6 +361,7 @@
     { "initparam",      do_initparam,        "[key] // key must be shorter"
                                              " than 16 chars" },
     { "sw99param",      do_sw99param,        "" },
+    { "switchcpu",      do_switch_cpu,       "" },
 #ifdef linux
     { "pin",            do_pin,              "<cpu> <program> [args ...]" }
 #endif

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

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I8972000b8efdd5ace31a1e8160bd5c9acfb1516d
Gerrit-Change-Number: 11929
Gerrit-PatchSet: 1
Gerrit-Owner: Jimmy Situ <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to