Modify ISA and staticInst to support a IsFirstMicroOp flag
Increment instruction count on first micro-op instead of last
src/arch/sparc/isa/decoder.isa:
Implement a twin load for ASI_LDTX_P(0xe2)
src/arch/sparc/isa/formats/mem/blockmem.isa:
set the new flag IsFirstMicroOp when needed
src/cpu/simple/atomic.cc:
Increment instruction count on first micro-op instead of last (because if we take a fault on a micro coded instruction it should be counted twice acording to legion)
src/cpu/static_inst.hh:
Add IsFirstMicroop flag to static insts
--HG--
extra : convert_revision : 02bea93d38c03bbafe4570665eb4c01c11caa2fc
This commit is contained in:
@@ -497,7 +497,7 @@ AtomicSimpleCPU::tick()
|
||||
|
||||
// @todo remove me after debugging with legion done
|
||||
if (curStaticInst && (!curStaticInst->isMicroOp() ||
|
||||
curStaticInst->isLastMicroOp()))
|
||||
curStaticInst->isFirstMicroOp()))
|
||||
instCnt++;
|
||||
|
||||
if (simulate_stalls) {
|
||||
|
||||
@@ -146,6 +146,7 @@ class StaticInstBase : public RefCounted
|
||||
IsMicroOp, ///< Is a microop
|
||||
IsDelayedCommit, ///< This microop doesn't commit right away
|
||||
IsLastMicroOp, ///< This microop ends a microop sequence
|
||||
IsFirstMicroOp, ///< This microop begins a microop sequence
|
||||
//This flag doesn't do anything yet
|
||||
IsMicroBranch, ///< This microop branches within the microcode for a macroop
|
||||
|
||||
@@ -244,6 +245,7 @@ class StaticInstBase : public RefCounted
|
||||
bool isMicroOp() const { return flags[IsMicroOp]; }
|
||||
bool isDelayedCommit() const { return flags[IsDelayedCommit]; }
|
||||
bool isLastMicroOp() const { return flags[IsLastMicroOp]; }
|
||||
bool isFirstMicroOp() const { return flags[IsFirstMicroOp]; }
|
||||
//This flag doesn't do anything yet
|
||||
bool isMicroBranch() const { return flags[IsMicroBranch]; }
|
||||
//@}
|
||||
|
||||
Reference in New Issue
Block a user