summaryrefslogtreecommitdiff
path: root/src/sim/pseudo_inst.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-09-18 23:26:39 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-09-18 23:26:39 -0700
commit9eda6b1d88a4bdd466964065dd6009bdcedfcb92 (patch)
tree6c237901f90bf90a95c1b070d25d7ccfbf2e9d67 /src/sim/pseudo_inst.cc
parentae62d97158c0908fca576a8c474ef8810e1d0420 (diff)
downloadgem5-9eda6b1d88a4bdd466964065dd6009bdcedfcb92.tar.xz
Pseudoinst: Add an initParam pseudo inst function.
Diffstat (limited to 'src/sim/pseudo_inst.cc')
-rw-r--r--src/sim/pseudo_inst.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sim/pseudo_inst.cc b/src/sim/pseudo_inst.cc
index eba7273c3..226495847 100644
--- a/src/sim/pseudo_inst.cc
+++ b/src/sim/pseudo_inst.cc
@@ -260,6 +260,12 @@ addsymbol(ThreadContext *tc, Addr addr, Addr symbolAddr)
debugSymbolTable->insert(addr,symbol);
}
+uint64_t
+initParam(ThreadContext *tc)
+{
+ return tc->getCpuPtr()->system->init_param;
+}
+
#endif