cpu-o3: Don't add non-speculative mem barriers to the IQ twice
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 13 Feb 2018 19:01:17 +0000 (19:01 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 20 Feb 2018 13:30:02 +0000 (13:30 +0000)
commita3bb33b257324ad9da3e656e30ba61e6f4b5497f
treef96fcfd5b9d68f65af3e62da12a168c3f58a4cc7
parent68eb852d62864b2093c365ce2a80e9fd39908312
cpu-o3: Don't add non-speculative mem barriers to the IQ twice

There are cases where the IEW adds a non-speculative instruction to
the IQ twice. This can happen if an instruction is flagged as
IsMemBarrier and IsNonSpeculative. Avoid adding non-speculative
instructions in the IEW to the IQ by checking if it has been added
already.

Change-Id: Ifcff676a451b57b2406ce00ed8dae19ed399515f
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Javier Setoain <javier.setoain@arm.com>
Reviewed-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8374
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/cpu/o3/iew_impl.hh