atomic.hh (8443:530ff1bc8d70) atomic.hh (8444:56de1f9320df)
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;

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

126 virtual void resume();
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
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;

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

126 virtual void resume();
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 Fault readBytes(Addr addr, uint8_t *data, unsigned size, unsigned flags);
134 Fault readMem(Addr addr, uint8_t *data, unsigned size, unsigned flags);
135
135
136 Fault writeBytes(uint8_t *data, unsigned size,
137 Addr addr, unsigned flags, uint64_t *res);
136 Fault writeMem(uint8_t *data, unsigned size,
137 Addr addr, unsigned flags, uint64_t *res);
138
139 /**
140 * Print state of address in memory system via PrintReq (for
141 * debugging).
142 */
143 void printAddr(Addr a);
144};
145
146#endif // __CPU_SIMPLE_ATOMIC_HH__
138
139 /**
140 * Print state of address in memory system via PrintReq (for
141 * debugging).
142 */
143 void printAddr(Addr a);
144};
145
146#endif // __CPU_SIMPLE_ATOMIC_HH__