Deleted Added
sdiff udiff text old ( 8706:b1838faf3bcc ) new ( 8741:491297d019f3 )
full compact
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 * Serialization stuff
55 */
56 virtual void serialize(std::ostream &os);
57 virtual void unserialize(Checkpoint *cp, const std::string &section);
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
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; }
106};
107
108#endif // __ARCH_ALPHA_SYSTEM_HH__
109