diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-09-18 23:26:39 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-09-18 23:26:39 -0700 |
commit | 9eda6b1d88a4bdd466964065dd6009bdcedfcb92 (patch) | |
tree | 6c237901f90bf90a95c1b070d25d7ccfbf2e9d67 /src/sim | |
parent | ae62d97158c0908fca576a8c474ef8810e1d0420 (diff) | |
download | gem5-9eda6b1d88a4bdd466964065dd6009bdcedfcb92.tar.xz |
Pseudoinst: Add an initParam pseudo inst function.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/pseudo_inst.cc | 6 | ||||
-rw-r--r-- | src/sim/pseudo_inst.hh | 1 |
2 files changed, 7 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 diff --git a/src/sim/pseudo_inst.hh b/src/sim/pseudo_inst.hh index 25ecbc029..95ef0d187 100644 --- a/src/sim/pseudo_inst.hh +++ b/src/sim/pseudo_inst.hh @@ -56,6 +56,7 @@ uint64_t readfile(ThreadContext *tc, Addr vaddr, uint64_t len, uint64_t offset); void loadsymbol(ThreadContext *xc); void addsymbol(ThreadContext *tc, Addr addr, Addr symbolAddr); +uint64_t initParam(ThreadContext *xc); #endif uint64_t rpns(ThreadContext *tc); |