Andreas Sandberg has uploaded this change for review. ( https://gem5-review.googlesource.com/3122

Change subject: util: Add the m5_loadsymbol pseudo op to the m5 tool
......................................................................

util: Add the m5_loadsymbol pseudo op to the m5 tool

Change-Id: Ib8bf4eac77170db8b2bf44796fd9d46b02217d03
Signed-off-by: Andreas Sandberg <andreas.sandb...@arm.com>
---
M util/m5/m5.c
M util/m5/m5op.h
2 files changed, 12 insertions(+), 0 deletions(-)



diff --git a/util/m5/m5.c b/util/m5/m5.c
index ee92134..8e21276 100644
--- a/util/m5/m5.c
+++ b/util/m5/m5.c
@@ -251,6 +251,16 @@
     m5_addsymbol(addr, symbol);
 }

+
+void
+do_loadsymbol(int argc, char *argv[])
+{
+    if (argc > 0)
+        usage();
+
+    m5_loadsymbol();
+}
+
 void
 do_initparam(int argc, char *argv[])
 {
@@ -321,6 +331,7 @@
     { "execfile",       do_exec_file,        "" },
     { "checkpoint",     do_checkpoint,       "[delay [period]]" },
     { "addsymbol",      do_addsymbol,        "<address> <symbol>" },
+    { "loadsymbol",     do_loadsymbol,       "" },
{ "initparam", do_initparam, "[key] // key must be shorter than 16 chars" },
     { "sw99param",      do_sw99param,        "" },
 #ifdef linux
diff --git a/util/m5/m5op.h b/util/m5/m5op.h
index d9fcb32..f2d85fe 100644
--- a/util/m5/m5op.h
+++ b/util/m5/m5op.h
@@ -59,6 +59,7 @@
 void m5_switchcpu(void);
 void m5_togglesync(void);
 void m5_addsymbol(uint64_t addr, char *symbol);
+void m5_loadsymbol();
 void m5_panic(void);
 void m5_work_begin(uint64_t workid, uint64_t threadid);
 void m5_work_end(uint64_t workid, uint64_t threadid);

--
To view, visit https://gem5-review.googlesource.com/3122
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib8bf4eac77170db8b2bf44796fd9d46b02217d03
Gerrit-Change-Number: 3122
Gerrit-PatchSet: 1
Gerrit-Owner: Andreas Sandberg <andreas.sandb...@arm.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to