thread_context.hh (6313:95f69a436c82) | thread_context.hh (6314:781969fbeca9) |
---|---|
1/* 2 * Copyright (c) 2004-2006 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; --- 153 unchanged lines hidden (view full) --- 162 virtual void copyArchRegs(ThreadContext *tc); 163 164 /** Resets all architectural registers to 0. */ 165 virtual void clearArchRegs(); 166 167 /** Reads an integer register. */ 168 virtual uint64_t readIntReg(int reg_idx); 169 | 1/* 2 * Copyright (c) 2004-2006 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; --- 153 unchanged lines hidden (view full) --- 162 virtual void copyArchRegs(ThreadContext *tc); 163 164 /** Resets all architectural registers to 0. */ 165 virtual void clearArchRegs(); 166 167 /** Reads an integer register. */ 168 virtual uint64_t readIntReg(int reg_idx); 169 |
170 virtual FloatReg readFloatReg(int reg_idx, int width); 171 | |
172 virtual FloatReg readFloatReg(int reg_idx); 173 | 170 virtual FloatReg readFloatReg(int reg_idx); 171 |
174 virtual FloatRegBits readFloatRegBits(int reg_idx, int width); 175 | |
176 virtual FloatRegBits readFloatRegBits(int reg_idx); 177 178 /** Sets an integer register to a value. */ 179 virtual void setIntReg(int reg_idx, uint64_t val); 180 | 172 virtual FloatRegBits readFloatRegBits(int reg_idx); 173 174 /** Sets an integer register to a value. */ 175 virtual void setIntReg(int reg_idx, uint64_t val); 176 |
181 virtual void setFloatReg(int reg_idx, FloatReg val, int width); 182 | |
183 virtual void setFloatReg(int reg_idx, FloatReg val); 184 | 177 virtual void setFloatReg(int reg_idx, FloatReg val); 178 |
185 virtual void setFloatRegBits(int reg_idx, FloatRegBits val, int width); 186 | |
187 virtual void setFloatRegBits(int reg_idx, FloatRegBits val); 188 189 /** Reads this thread's PC. */ 190 virtual uint64_t readPC() 191 { return cpu->readPC(thread->threadId()); } 192 193 /** Sets this thread's PC. */ 194 virtual void setPC(uint64_t val); --- 81 unchanged lines hidden --- | 179 virtual void setFloatRegBits(int reg_idx, FloatRegBits val); 180 181 /** Reads this thread's PC. */ 182 virtual uint64_t readPC() 183 { return cpu->readPC(thread->threadId()); } 184 185 /** Sets this thread's PC. */ 186 virtual void setPC(uint64_t val); --- 81 unchanged lines hidden --- |