atomic.hh (2798:751e9170247e) atomic.hh (2856:89691405ec9c)
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;

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

117 Request *data_write_req;
118 Packet *data_write_pkt;
119
120 bool dcache_access;
121 Tick dcache_latency;
122
123 public:
124
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;

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

117 Request *data_write_req;
118 Packet *data_write_pkt;
119
120 bool dcache_access;
121 Tick dcache_latency;
122
123 public:
124
125 virtual Port *getPort(const std::string &if_name, int idx = -1);
126
125 virtual void serialize(std::ostream &os);
126 virtual void unserialize(Checkpoint *cp, const std::string &section);
127
128 void switchOut();
129 void takeOverFrom(BaseCPU *oldCPU);
130
131 virtual void activateContext(int thread_num, int delay);
132 virtual void suspendContext(int thread_num);
133
134 template <class T>
135 Fault read(Addr addr, T &data, unsigned flags);
136
137 template <class T>
138 Fault write(T data, Addr addr, unsigned flags, uint64_t *res);
139};
140
141#endif // __CPU_SIMPLE_ATOMIC_HH__
127 virtual void serialize(std::ostream &os);
128 virtual void unserialize(Checkpoint *cp, const std::string &section);
129
130 void switchOut();
131 void takeOverFrom(BaseCPU *oldCPU);
132
133 virtual void activateContext(int thread_num, int delay);
134 virtual void suspendContext(int thread_num);
135
136 template <class T>
137 Fault read(Addr addr, T &data, unsigned flags);
138
139 template <class T>
140 Fault write(T data, Addr addr, unsigned flags, uint64_t *res);
141};
142
143#endif // __CPU_SIMPLE_ATOMIC_HH__