system.hh (3745:70a265d01c87) system.hh (3853:76f34214fbab)
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;

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

128 /** functional port to partition description */
129 FunctionalPort funcPartDescPort;
130
131 protected:
132 const Params *params() const { return (const Params *)_params; }
133
134 /** Add a function-based event to reset binary. */
135 template <class T>
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;

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

128 /** functional port to partition description */
129 FunctionalPort funcPartDescPort;
130
131 protected:
132 const Params *params() const { return (const Params *)_params; }
133
134 /** Add a function-based event to reset binary. */
135 template <class T>
136 T *SparcSystem::addResetFuncEvent(const char *lbl)
136 T *addResetFuncEvent(const char *lbl)
137 {
138 return addFuncEvent<T>(resetSymtab, lbl);
139 }
140
141 /** Add a function-based event to the hypervisor. */
142 template <class T>
137 {
138 return addFuncEvent<T>(resetSymtab, lbl);
139 }
140
141 /** Add a function-based event to the hypervisor. */
142 template <class T>
143 T *SparcSystem::addHypervisorFuncEvent(const char *lbl)
143 T *addHypervisorFuncEvent(const char *lbl)
144 {
145 return addFuncEvent<T>(hypervisorSymtab, lbl);
146 }
147
148 /** Add a function-based event to the openboot. */
149 template <class T>
144 {
145 return addFuncEvent<T>(hypervisorSymtab, lbl);
146 }
147
148 /** Add a function-based event to the openboot. */
149 template <class T>
150 T *SparcSystem::addOpenbootFuncEvent(const char *lbl)
150 T *addOpenbootFuncEvent(const char *lbl)
151 {
152 return addFuncEvent<T>(openbootSymtab, lbl);
153 }
154
155 virtual Addr fixFuncEventAddr(Addr addr)
156 {
157 //XXX This may eventually have to do something useful.
158 return addr;
159 }
160};
161
162#endif
163
151 {
152 return addFuncEvent<T>(openbootSymtab, lbl);
153 }
154
155 virtual Addr fixFuncEventAddr(Addr addr)
156 {
157 //XXX This may eventually have to do something useful.
158 return addr;
159 }
160};
161
162#endif
163