cpu: Use the generic nop static inst instead of decoding the arch version.
[gem5.git] / src / cpu / o3 / fetch_impl.hh
index 7631b4c6ad07a36bb5144da98193b901bb6ee2fb..0cf8a47a7ff3f953e5e0f3795d7bf2d15552ee94 100644 (file)
@@ -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;