system.hh (5268:5bfc53fe60e7) system.hh (6378:4a2ff62c3b4f)
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

49{
50 public:
51 typedef MipsSystemParams Params;
52 MipsSystem(Params *p);
53 ~MipsSystem();
54
55 virtual bool breakpoint();
56
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2007 MIPS Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

49{
50 public:
51 typedef MipsSystemParams Params;
52 MipsSystem(Params *p);
53 ~MipsSystem();
54
55 virtual bool breakpoint();
56
57/**
58 * Serialization stuff
59 */
60 public:
57 public:
58 /**
59 * Serialization stuff
60 */
61 virtual void serialize(std::ostream &os);
62 virtual void unserialize(Checkpoint *cp, const std::string &section);
63
64 /**
65 * Set the m5MipsAccess pointer in the console
66 */
67 void setMipsAccess(Addr access);
68

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

84
85 protected:
86 const Params *params() const { return (const Params *)_params; }
87
88
89#if FULL_SYSTEM
90 /** Add a function-based event to the console code. */
91 template <class T>
61 virtual void serialize(std::ostream &os);
62 virtual void unserialize(Checkpoint *cp, const std::string &section);
63
64 /**
65 * Set the m5MipsAccess pointer in the console
66 */
67 void setMipsAccess(Addr access);
68

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

84
85 protected:
86 const Params *params() const { return (const Params *)_params; }
87
88
89#if FULL_SYSTEM
90 /** Add a function-based event to the console code. */
91 template <class T>
92 T *addConsoleFuncEvent(const char *lbl)
92 T *
93 addConsoleFuncEvent(const char *lbl)
93 {
94 return addFuncEvent<T>(consoleSymtab, lbl);
95 }
96
97 virtual Addr fixFuncEventAddr(Addr addr);
98#endif
99
100};
101
102#endif
103
94 {
95 return addFuncEvent<T>(consoleSymtab, lbl);
96 }
97
98 virtual Addr fixFuncEventAddr(Addr addr);
99#endif
100
101};
102
103#endif
104