system.hh (5713:993c7952b930) system.hh (5714:76abee886def)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 73 unchanged lines hidden (view full) ---

82 * @param mode Mode to change to (atomic/timing)
83 */
84 void setMemoryMode(Enums::MemoryMode mode);
85
86 PhysicalMemory *physmem;
87 PCEventQueue pcEventQueue;
88
89 std::vector<ThreadContext *> threadContexts;
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 73 unchanged lines hidden (view full) ---

82 * @param mode Mode to change to (atomic/timing)
83 */
84 void setMemoryMode(Enums::MemoryMode mode);
85
86 PhysicalMemory *physmem;
87 PCEventQueue pcEventQueue;
88
89 std::vector<ThreadContext *> threadContexts;
90 int numcpus;
90 int _numContexts;
91
92 ThreadContext * getThreadContext(int tid)
93 {
94 return threadContexts[tid];
95 }
96
91
92 ThreadContext * getThreadContext(int tid)
93 {
94 return threadContexts[tid];
95 }
96
97 int getNumCPUs()
97 int numContexts()
98 {
98 {
99 if (numcpus != threadContexts.size())
99 if (_numContexts != threadContexts.size())
100 panic("cpu array not fully populated!");
101
100 panic("cpu array not fully populated!");
101
102 return numcpus;
102 return _numContexts;
103 }
104
105#if FULL_SYSTEM
106 Platform *platform;
107 uint64_t init_param;
108
109 /** Port to physical memory used for writing object files into ram at
110 * boot.*/

--- 138 unchanged lines hidden ---
103 }
104
105#if FULL_SYSTEM
106 Platform *platform;
107 uint64_t init_param;
108
109 /** Port to physical memory used for writing object files into ram at
110 * boot.*/

--- 138 unchanged lines hidden ---