simple_thread.hh (10407:a9023811bf9e) | simple_thread.hh (10664:61a0b02aa800) |
---|---|
1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 206 unchanged lines hidden (view full) --- 215 void activate(); 216 217 /// Set the status to Suspended. 218 void suspend(); 219 220 /// Set the status to Halted. 221 void halt(); 222 | 1/* 2 * Copyright (c) 2011-2012 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 206 unchanged lines hidden (view full) --- 215 void activate(); 216 217 /// Set the status to Suspended. 218 void suspend(); 219 220 /// Set the status to Halted. 221 void halt(); 222 |
223 virtual bool misspeculating(); 224 | |
225 void copyArchRegs(ThreadContext *tc); 226 227 void clearArchRegs() 228 { 229 _pcState = 0; 230 memset(intRegs, 0, sizeof(intRegs)); 231 memset(floatRegs.i, 0, sizeof(floatRegs.i)); 232#ifdef ISA_HAS_CC_REGS --- 217 unchanged lines hidden (view full) --- 450 { panic("readCCRegFlat w/no CC regs!\n"); } 451 452 void setCCRegFlat(int idx, CCReg val) 453 { panic("setCCRegFlat w/no CC regs!\n"); } 454#endif 455}; 456 457 | 223 void copyArchRegs(ThreadContext *tc); 224 225 void clearArchRegs() 226 { 227 _pcState = 0; 228 memset(intRegs, 0, sizeof(intRegs)); 229 memset(floatRegs.i, 0, sizeof(floatRegs.i)); 230#ifdef ISA_HAS_CC_REGS --- 217 unchanged lines hidden (view full) --- 448 { panic("readCCRegFlat w/no CC regs!\n"); } 449 450 void setCCRegFlat(int idx, CCReg val) 451 { panic("setCCRegFlat w/no CC regs!\n"); } 452#endif 453}; 454 455 |
458// for non-speculative execution context, spec_mode is always false 459inline bool 460SimpleThread::misspeculating() 461{ 462 return false; 463} 464 | |
465#endif // __CPU_CPU_EXEC_CONTEXT_HH__ | 456#endif // __CPU_CPU_EXEC_CONTEXT_HH__ |