atomic.hh (6078:aae5ac55c749) | atomic.hh (7520:67c670459d01) |
---|---|
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; --- 120 unchanged lines hidden (view full) --- 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 | 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; --- 120 unchanged lines hidden (view full) --- 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 Fault readBytes(Addr addr, uint8_t *data, unsigned size, unsigned flags); 138 |
|
137 template <class T> 138 Fault write(T data, Addr addr, unsigned flags, uint64_t *res); 139 | 139 template <class T> 140 Fault write(T data, Addr addr, unsigned flags, uint64_t *res); 141 |
142 Fault writeBytes(uint8_t *data, unsigned size, 143 Addr addr, unsigned flags, uint64_t *res); 144 |
|
140 /** 141 * Print state of address in memory system via PrintReq (for 142 * debugging). 143 */ 144 void printAddr(Addr a); 145}; 146 147#endif // __CPU_SIMPLE_ATOMIC_HH__ | 145 /** 146 * Print state of address in memory system via PrintReq (for 147 * debugging). 148 */ 149 void printAddr(Addr a); 150}; 151 152#endif // __CPU_SIMPLE_ATOMIC_HH__ |