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

--- 241 unchanged lines hidden (view full) ---

250 }
251
252 // Also not necessarily the best location for these two. Hopefully will go
253 // away once we decide upon where st cond failures goes.
254 virtual unsigned readStCondFailures() = 0;
255
256 virtual void setStCondFailures(unsigned sc_failures) = 0;
257
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

--- 241 unchanged lines hidden (view full) ---

250 }
251
252 // Also not necessarily the best location for these two. Hopefully will go
253 // away once we decide upon where st cond failures goes.
254 virtual unsigned readStCondFailures() = 0;
255
256 virtual void setStCondFailures(unsigned sc_failures) = 0;
257
258 // Only really makes sense for old CPU model. Still could be useful though.
259 virtual bool misspeculating() = 0;
260
261 // Same with st cond failures.
262 virtual Counter readFuncExeInst() = 0;
263
264 virtual void syscall(int64_t callnum) = 0;
265
266 // This function exits the thread context in the CPU and returns
267 // 1 if the CPU has no more active threads (meaning it's OK to exit);
268 // Used in syscall-emulation mode when a thread calls the exit syscall.

--- 188 unchanged lines hidden (view full) ---

457 { return actualTC->flattenMiscIndex(reg); }
458
459 unsigned readStCondFailures()
460 { return actualTC->readStCondFailures(); }
461
462 void setStCondFailures(unsigned sc_failures)
463 { actualTC->setStCondFailures(sc_failures); }
464
258 // Same with st cond failures.
259 virtual Counter readFuncExeInst() = 0;
260
261 virtual void syscall(int64_t callnum) = 0;
262
263 // This function exits the thread context in the CPU and returns
264 // 1 if the CPU has no more active threads (meaning it's OK to exit);
265 // Used in syscall-emulation mode when a thread calls the exit syscall.

--- 188 unchanged lines hidden (view full) ---

454 { return actualTC->flattenMiscIndex(reg); }
455
456 unsigned readStCondFailures()
457 { return actualTC->readStCondFailures(); }
458
459 void setStCondFailures(unsigned sc_failures)
460 { actualTC->setStCondFailures(sc_failures); }
461
465 // @todo: Fix this!
466 bool misspeculating() { return actualTC->misspeculating(); }
467
468 void syscall(int64_t callnum)
469 { actualTC->syscall(callnum); }
470
471 Counter readFuncExeInst() { return actualTC->readFuncExeInst(); }
472
473 uint64_t readIntRegFlat(int idx)
474 { return actualTC->readIntRegFlat(idx); }
475

--- 51 unchanged lines hidden ---
462 void syscall(int64_t callnum)
463 { actualTC->syscall(callnum); }
464
465 Counter readFuncExeInst() { return actualTC->readFuncExeInst(); }
466
467 uint64_t readIntRegFlat(int idx)
468 { return actualTC->readIntRegFlat(idx); }
469

--- 51 unchanged lines hidden ---