summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-12-19 23:48:00 -0800
committerGabe Black <gabeblack@google.com>2017-12-22 00:27:37 +0000
commit4ac0a01e2fdeee8f17d15636409acd7208d9187e (patch)
tree356e2a056c002a7a53082dc19d4c7f8939a76018 /src/cpu/o3
parent3742cc9137b43d1e42957d8b440044fa9e95e907 (diff)
downloadgem5-4ac0a01e2fdeee8f17d15636409acd7208d9187e.tar.xz
cpu: Use the generic nop static inst instead of decoding the arch version.
This removes a dependence on the ISA. Change-Id: I01013bc70558f0831327213912bcac11258066a6 Reviewed-on: https://gem5-review.googlesource.com/6824 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu/o3')
-rw-r--r--src/cpu/o3/fetch_impl.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh
index 7631b4c6a..0cf8a47a7 100644
--- a/src/cpu/o3/fetch_impl.hh
+++ b/src/cpu/o3/fetch_impl.hh
@@ -727,9 +727,8 @@ DefaultFetch<Impl>::finishTranslation(const Fault &fault, RequestPtr mem_req)
DPRINTF(Fetch, "[tid:%i]: Translation faulted, building noop.\n", tid);
// We will use a nop in ordier to carry the fault.
- DynInstPtr instruction = buildInst(tid,
- decoder[tid]->decode(TheISA::NoopMachInst, fetchPC.instAddr()),
- NULL, fetchPC, fetchPC, false);
+ DynInstPtr instruction = buildInst(tid, StaticInst::nopStaticInstPtr,
+ NULL, fetchPC, fetchPC, false);
instruction->setPredTarg(fetchPC);
instruction->fault = fault;