diff options
author | Fernando Endo <fernando.endo2@gmail.com> | 2016-10-15 14:58:45 -0500 |
---|---|---|
committer | Fernando Endo <fernando.endo2@gmail.com> | 2016-10-15 14:58:45 -0500 |
commit | 6c72c3551978ef2eabbe9727bf24fd2fcf385318 (patch) | |
tree | d7b37cfe5b12e2136afe5f90ea22d67a512d0018 /src/cpu/op_class.hh | |
parent | 2f5262eb67f0539ab6c07d56eeae1b72f6b6b509 (diff) | |
download | gem5-6c72c3551978ef2eabbe9727bf24fd2fcf385318.tar.xz |
cpu, arm: Distinguish Float* and SimdFloat*, create FloatMem* opClass
Modify the opClass assigned to AArch64 FP instructions from SimdFloat* to
Float*. Also create the FloatMemRead and FloatMemWrite opClasses, which
distinguishes writes to the INT and FP register banks.
Change the latency of (Simd)FloatMultAcc to 5, based on the Cortex-A72,
where the "latency" of FMADD is 3 if the next instruction is a FMADD and
has only the augend to destination dependency, otherwise it's 7 cycles.
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/cpu/op_class.hh')
-rw-r--r-- | src/cpu/op_class.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/op_class.hh b/src/cpu/op_class.hh index ffdd84eb4..adc7bae97 100644 --- a/src/cpu/op_class.hh +++ b/src/cpu/op_class.hh @@ -59,7 +59,9 @@ static const OpClass FloatAddOp = Enums::FloatAdd; static const OpClass FloatCmpOp = Enums::FloatCmp; static const OpClass FloatCvtOp = Enums::FloatCvt; static const OpClass FloatMultOp = Enums::FloatMult; +static const OpClass FloatMultAccOp = Enums::FloatMultAcc; static const OpClass FloatDivOp = Enums::FloatDiv; +static const OpClass FloatMiscOp = Enums::FloatMisc; static const OpClass FloatSqrtOp = Enums::FloatSqrt; static const OpClass SimdAddOp = Enums::SimdAdd; static const OpClass SimdAddAccOp = Enums::SimdAddAcc; @@ -83,6 +85,8 @@ static const OpClass SimdFloatMultAccOp = Enums::SimdFloatMultAcc; static const OpClass SimdFloatSqrtOp = Enums::SimdFloatSqrt; static const OpClass MemReadOp = Enums::MemRead; static const OpClass MemWriteOp = Enums::MemWrite; +static const OpClass FloatMemReadOp = Enums::FloatMemRead; +static const OpClass FloatMemWriteOp = Enums::FloatMemWrite; static const OpClass IprAccessOp = Enums::IprAccess; static const OpClass InstPrefetchOp = Enums::InstPrefetch; static const OpClass Num_OpClasses = Enums::Num_OpClass; |