diff options
author | Miguel Serrano <mserrano@umich.edu> | 2005-07-01 15:12:09 -0400 |
---|---|---|
committer | Miguel Serrano <mserrano@umich.edu> | 2005-07-01 15:12:09 -0400 |
commit | 4f2480a18bdf98792e2ebf3471ce7cd3109ef824 (patch) | |
tree | b2d8d27e41eae3d659dbe6e6665436d02bcea429 /sim/system.hh | |
parent | 16a2357e8637fed706a94ab0da6226df8a2e7f07 (diff) | |
parent | efd0c5d4b04f630f1b591af509458224b6d98655 (diff) | |
download | gem5-4f2480a18bdf98792e2ebf3471ce7cd3109ef824.tar.xz |
Merge m5read@m5.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/.automount/fox/y/mserrano/m5_new/m5
--HG--
extra : convert_revision : bb3e977e79599c459fb32f309ce5b486f1639afa
Diffstat (limited to 'sim/system.hh')
-rw-r--r-- | sim/system.hh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sim/system.hh b/sim/system.hh index c3e4d6d68..870805e4c 100644 --- a/sim/system.hh +++ b/sim/system.hh @@ -58,6 +58,15 @@ class System : public SimObject uint64_t init_param; std::vector<ExecContext *> execContexts; + int numcpus; + + int getNumCPUs() + { + if (numcpus != execContexts.size()) + panic("cpu array not fully populated!"); + + return numcpus; + } /** kernel Symbol table */ SymbolTable *kernelSymtab; @@ -128,6 +137,11 @@ class System : public SimObject public: /** + * Set the m5AlphaAccess pointer in the console + */ + void setAlphaAccess(Addr access); + + /** * Returns the addess the kernel starts at. * @return address the kernel starts at */ @@ -145,7 +159,7 @@ class System : public SimObject */ Addr getKernelEntry() const { return kernelEntry; } - int registerExecContext(ExecContext *xc); + int registerExecContext(ExecContext *xc, int xcIndex); void replaceExecContext(ExecContext *xc, int xcIndex); void regStats(); |