exec_context.hh (6973:a123bd350935) | exec_context.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; --- 97 unchanged lines hidden (view full) --- 106 /** Returns a pointer to the ThreadContext. */ 107 ThreadContext *tcBase(); 108 109 /** Reads an address, creating a memory request with the given 110 * flags. Stores result of read in data. */ 111 template <class T> 112 Fault read(Addr addr, T &data, unsigned flags); 113 | 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; --- 97 unchanged lines hidden (view full) --- 106 /** Returns a pointer to the ThreadContext. */ 107 ThreadContext *tcBase(); 108 109 /** Reads an address, creating a memory request with the given 110 * flags. Stores result of read in data. */ 111 template <class T> 112 Fault read(Addr addr, T &data, unsigned flags); 113 |
114 Fault readBytes(Addr addr, uint8_t *data, unsigned size, unsigned flags); 115 |
|
114 /** Writes to an address, creating a memory request with the given 115 * flags. Writes data to memory. For store conditionals, returns 116 * the result of the store in res. */ 117 template <class T> 118 Fault write(T data, Addr addr, unsigned flags, uint64_t *res); 119 | 116 /** Writes to an address, creating a memory request with the given 117 * flags. Writes data to memory. For store conditionals, returns 118 * the result of the store in res. */ 119 template <class T> 120 Fault write(T data, Addr addr, unsigned flags, uint64_t *res); 121 |
122 Fault writeBytes(uint8_t *data, unsigned size, 123 Addr addr, unsigned flags, uint64_t *res); 124 |
|
120 /** Prefetches an address, creating a memory request with the 121 * given flags. */ 122 void prefetch(Addr addr, unsigned flags); 123 124 /** Hints to the memory system that an address will be written to 125 * soon, with the given size. Creates a memory request with the 126 * given flags. */ 127 void writeHint(Addr addr, int size, unsigned flags); --- 19 unchanged lines hidden --- | 125 /** Prefetches an address, creating a memory request with the 126 * given flags. */ 127 void prefetch(Addr addr, unsigned flags); 128 129 /** Hints to the memory system that an address will be written to 130 * soon, with the given size. Creates a memory request with the 131 * given flags. */ 132 void writeHint(Addr addr, int size, unsigned flags); --- 19 unchanged lines hidden --- |