thread_context.hh (10407:a9023811bf9e) | thread_context.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 --- 243 unchanged lines hidden (view full) --- 252 // @todo: Figure out where these store cond failures should go. 253 virtual unsigned readStCondFailures() 254 { return thread->storeCondFailures; } 255 256 /** Sets the number of consecutive store conditional failures. */ 257 virtual void setStCondFailures(unsigned sc_failures) 258 { thread->storeCondFailures = sc_failures; } 259 | 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 --- 243 unchanged lines hidden (view full) --- 252 // @todo: Figure out where these store cond failures should go. 253 virtual unsigned readStCondFailures() 254 { return thread->storeCondFailures; } 255 256 /** Sets the number of consecutive store conditional failures. */ 257 virtual void setStCondFailures(unsigned sc_failures) 258 { thread->storeCondFailures = sc_failures; } 259 |
260 // Only really makes sense for old CPU model. Lots of code 261 // outside the CPU still checks this function, so it will 262 // always return false to keep everything working. 263 /** Checks if the thread is misspeculating. Because it is 264 * very difficult to determine if the thread is 265 * misspeculating, this is set as false. */ 266 virtual bool misspeculating() { return false; } 267 | |
268 /** Executes a syscall in SE mode. */ 269 virtual void syscall(int64_t callnum) 270 { return cpu->syscall(callnum, thread->threadId()); } 271 272 /** Reads the funcExeInst counter. */ 273 virtual Counter readFuncExeInst() { return thread->funcExeInst; } 274 275 /** Returns pointer to the quiesce event. */ --- 29 unchanged lines hidden --- | 260 /** Executes a syscall in SE mode. */ 261 virtual void syscall(int64_t callnum) 262 { return cpu->syscall(callnum, thread->threadId()); } 263 264 /** Reads the funcExeInst counter. */ 265 virtual Counter readFuncExeInst() { return thread->funcExeInst; } 266 267 /** Returns pointer to the quiesce event. */ --- 29 unchanged lines hidden --- |