system.hh (8706:b1838faf3bcc) | system.hh (8741:491297d019f3) |
---|---|
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; --- 36 unchanged lines hidden (view full) --- 45class AlphaSystem : public System 46{ 47 public: 48 typedef AlphaSystemParams Params; 49 AlphaSystem(Params *p); 50 ~AlphaSystem(); 51 52 public: | 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; --- 36 unchanged lines hidden (view full) --- 45class AlphaSystem : public System 46{ 47 public: 48 typedef AlphaSystemParams Params; 49 AlphaSystem(Params *p); 50 ~AlphaSystem(); 51 52 public: |
53 | |
54 /** | 53 /** |
55 * Initialise the state of the system. 56 */ 57 virtual void initState(); 58 59 /** | |
60 * Serialization stuff 61 */ 62 virtual void serialize(std::ostream &os); 63 virtual void unserialize(Checkpoint *cp, const std::string §ion); 64 65 /** 66 * Set the m5AlphaAccess pointer in the console 67 */ --- 12 unchanged lines hidden (view full) --- 80 ObjectFile *pal; 81 82#ifndef NDEBUG 83 /** Event to halt the simulator if the console calls panic() */ 84 BreakPCEvent *consolePanicEvent; 85#endif 86 87 protected: | 54 * Serialization stuff 55 */ 56 virtual void serialize(std::ostream &os); 57 virtual void unserialize(Checkpoint *cp, const std::string §ion); 58 59 /** 60 * Set the m5AlphaAccess pointer in the console 61 */ --- 12 unchanged lines hidden (view full) --- 74 ObjectFile *pal; 75 76#ifndef NDEBUG 77 /** Event to halt the simulator if the console calls panic() */ 78 BreakPCEvent *consolePanicEvent; 79#endif 80 81 protected: |
82 Tick intrFreq; 83 |
|
88 const Params *params() const { return (const Params *)_params; } 89 90 /** Add a function-based event to PALcode. */ 91 template <class T> 92 T * 93 addPalFuncEvent(const char *lbl) 94 { 95 return addFuncEvent<T>(palSymtab, lbl); 96 } 97 98 /** Add a function-based event to the console code. */ 99 template <class T> 100 T * 101 addConsoleFuncEvent(const char *lbl) 102 { 103 return addFuncEvent<T>(consoleSymtab, lbl); 104 } 105 106 virtual Addr fixFuncEventAddr(Addr addr); | 84 const Params *params() const { return (const Params *)_params; } 85 86 /** Add a function-based event to PALcode. */ 87 template <class T> 88 T * 89 addPalFuncEvent(const char *lbl) 90 { 91 return addFuncEvent<T>(palSymtab, lbl); 92 } 93 94 /** Add a function-based event to the console code. */ 95 template <class T> 96 T * 97 addConsoleFuncEvent(const char *lbl) 98 { 99 return addFuncEvent<T>(consoleSymtab, lbl); 100 } 101 102 virtual Addr fixFuncEventAddr(Addr addr); |
103 104 public: 105 void setIntrFreq(Tick freq) { intrFreq = freq; } |
|
107}; 108 109#endif // __ARCH_ALPHA_SYSTEM_HH__ 110 | 106}; 107 108#endif // __ARCH_ALPHA_SYSTEM_HH__ 109 |