atomic.hh (5529:9ae69b9cd7fd) atomic.hh (5890:bdef71accd68)
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;

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

131 virtual void suspendContext(int thread_num);
132
133 template <class T>
134 Fault read(Addr addr, T &data, unsigned flags);
135
136 template <class T>
137 Fault write(T data, Addr addr, unsigned flags, uint64_t *res);
138
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;

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

131 virtual void suspendContext(int thread_num);
132
133 template <class T>
134 Fault read(Addr addr, T &data, unsigned flags);
135
136 template <class T>
137 Fault write(T data, Addr addr, unsigned flags, uint64_t *res);
138
139 Fault translateDataReadAddr(Addr vaddr, Addr &paddr,
140 int size, unsigned flags);
141 Fault translateDataWriteAddr(Addr vaddr, Addr &paddr,
142 int size, unsigned flags);
143
144 /**
145 * Print state of address in memory system via PrintReq (for
146 * debugging).
147 */
148 void printAddr(Addr a);
149};
150
151#endif // __CPU_SIMPLE_ATOMIC_HH__
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__