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/pseudo_inst.cc | |
parent | ae62d97158c0908fca576a8c474ef8810e1d0420 (diff) | |
download | gem5-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.cc | 6 |
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 |