atomic.hh (2901:f9a45473ab55) | atomic.hh (2915:1f4d02556ac1) |
---|---|
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; --- 112 unchanged lines hidden (view full) --- 121 Tick dcache_latency; 122 123 public: 124 125 virtual Port *getPort(const std::string &if_name, int idx = -1); 126 127 virtual void serialize(std::ostream &os); 128 virtual void unserialize(Checkpoint *cp, const std::string §ion); | 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; --- 112 unchanged lines hidden (view full) --- 121 Tick dcache_latency; 122 123 public: 124 125 virtual Port *getPort(const std::string &if_name, int idx = -1); 126 127 virtual void serialize(std::ostream &os); 128 virtual void unserialize(Checkpoint *cp, const std::string §ion); |
129 | |
130 virtual void resume(); | 129 virtual void resume(); |
130 |
|
131 void switchOut(); 132 void takeOverFrom(BaseCPU *oldCPU); 133 134 virtual void activateContext(int thread_num, int delay); 135 virtual void suspendContext(int thread_num); 136 137 template <class T> 138 Fault read(Addr addr, T &data, unsigned flags); 139 140 template <class T> 141 Fault write(T data, Addr addr, unsigned flags, uint64_t *res); 142}; 143 144#endif // __CPU_SIMPLE_ATOMIC_HH__ | 131 void switchOut(); 132 void takeOverFrom(BaseCPU *oldCPU); 133 134 virtual void activateContext(int thread_num, int delay); 135 virtual void suspendContext(int thread_num); 136 137 template <class T> 138 Fault read(Addr addr, T &data, unsigned flags); 139 140 template <class T> 141 Fault write(T data, Addr addr, unsigned flags, uint64_t *res); 142}; 143 144#endif // __CPU_SIMPLE_ATOMIC_HH__ |