exec_context.hh (7725:00ea9430643b) | exec_context.hh (8443:530ff1bc8d70) |
---|---|
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; --- 92 unchanged lines hidden (view full) --- 101 void setEA(Addr EA); 102 /** Returns the effective address of the instruction. Only valid 103 * for memory ops. */ 104 Addr getEA(); 105 106 /** Returns a pointer to the ThreadContext. */ 107 ThreadContext *tcBase(); 108 | 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; --- 92 unchanged lines hidden (view full) --- 101 void setEA(Addr EA); 102 /** Returns the effective address of the instruction. Only valid 103 * for memory ops. */ 104 Addr getEA(); 105 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 | 109 Fault readBytes(Addr addr, uint8_t *data, unsigned size, unsigned flags); 110 |
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 125#if FULL_SYSTEM 126 /** Somewhat Alpha-specific function that handles returning from 127 * an error or interrupt. */ 128 Fault hwrei(); 129 --- 13 unchanged lines hidden --- | 111 Fault writeBytes(uint8_t *data, unsigned size, 112 Addr addr, unsigned flags, uint64_t *res); 113 114#if FULL_SYSTEM 115 /** Somewhat Alpha-specific function that handles returning from 116 * an error or interrupt. */ 117 Fault hwrei(); 118 --- 13 unchanged lines hidden --- |