Gabe Black has submitted this change and it was merged. ( https://gem5-review.googlesource.com/6824 )

Change subject: cpu: Use the generic nop static inst instead of decoding the arch version.
......................................................................

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 <[email protected]>
Maintainer: Andreas Sandberg <[email protected]>
---
M src/cpu/o3/fetch_impl.hh
1 file changed, 2 insertions(+), 3 deletions(-)

Approvals:
  Andreas Sandberg: Looks good to me, approved; Looks good to me, approved



diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh
index 7631b4c..0cf8a47 100644
--- a/src/cpu/o3/fetch_impl.hh
+++ b/src/cpu/o3/fetch_impl.hh
@@ -727,9 +727,8 @@

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;

--
To view, visit https://gem5-review.googlesource.com/6824
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I01013bc70558f0831327213912bcac11258066a6
Gerrit-Change-Number: 6824
Gerrit-PatchSet: 3
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to