arch: Stop using TheISA within the ISAs.
authorGabe Black <gabeblack@google.com>
Tue, 30 Apr 2019 00:12:08 +0000 (17:12 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 30 Apr 2019 18:52:13 +0000 (18:52 +0000)
We know for sure what the ISA is, so there's no need for the
indirection.

Change-Id: I73ff04c50890d40a4c7f40caeee746b68b846cb3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18488
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
20 files changed:
src/arch/alpha/utility.cc
src/arch/arm/isa/insts/fp64.isa
src/arch/arm/isa/insts/ldr64.isa
src/arch/arm/isa/insts/neon64_mem.isa
src/arch/arm/isa/insts/sve.isa
src/arch/arm/isa/operands.isa
src/arch/arm/tracers/tarmac_base.cc
src/arch/arm/tracers/tarmac_base.hh
src/arch/arm/tracers/tarmac_parser.cc
src/arch/arm/tracers/tarmac_parser.hh
src/arch/arm/tracers/tarmac_record.hh
src/arch/arm/tracers/tarmac_record_v8.cc
src/arch/arm/tracers/tarmac_record_v8.hh
src/arch/arm/tracers/tarmac_tracer.cc
src/arch/arm/tracers/tarmac_tracer.hh
src/arch/mips/utility.cc
src/arch/power/stacktrace.hh
src/arch/riscv/stacktrace.hh
src/arch/sparc/utility.cc
src/arch/x86/process.cc

index c03e7b0da1fcbf427d53defce1b2146077080d71..c644911ba2100127405b133c290cf0b76d372b15 100644 (file)
@@ -100,7 +100,7 @@ copyMiscRegs(ThreadContext *src, ThreadContext *dest)
 void
 skipFunction(ThreadContext *tc)
 {
-    TheISA::PCState newPC = tc->pcState();
+    PCState newPC = tc->pcState();
     newPC.set(tc->readIntReg(ReturnAddressReg));
     tc->pcState(newPC);
 }
index 26803e7e549915dc1da30cf4ee767b6fba6364ce..7decbac2577589a25b9dc39cda531ec650a2b885 100644 (file)
@@ -45,7 +45,7 @@ let {{
     exec_output = ""
 
     zeroSveVecRegUpperPartCode = '''
-        TheISA::ISA::zeroSveVecRegUpperPart(%s,
+        ArmISA::ISA::zeroSveVecRegUpperPart(%s,
             ArmStaticInst::getCurSveVecLen<uint64_t>(xc->tcBase()));
     '''
 
index fe7eaf0f80634a28d2601d118b74da9e3bf5a72a..56112a7c138f0e4f7975a5ff4c57d8a29da3fd8c 100644 (file)
@@ -185,7 +185,7 @@ let {{
                 accCode = 'uint64_t temp M5_VAR_USED = Mem%s;'
             elif self.flavor == "fp":
                 accEpilogCode = '''
-                    TheISA::ISA::zeroSveVecRegUpperPart(AA64FpDest,
+                    ArmISA::ISA::zeroSveVecRegUpperPart(AA64FpDest,
                         ArmStaticInst::getCurSveVecLen<uint64_t>(
                             xc->tcBase()));
                 '''
@@ -239,10 +239,10 @@ let {{
             # Code that actually handles the access
             if self.flavor == "fp":
                 accEpilogCode = '''
-                    TheISA::ISA::zeroSveVecRegUpperPart(AA64FpDest,
+                    ArmISA::ISA::zeroSveVecRegUpperPart(AA64FpDest,
                         ArmStaticInst::getCurSveVecLen<uint64_t>(
                             xc->tcBase()));
-                    TheISA::ISA::zeroSveVecRegUpperPart(AA64FpDest2,
+                    ArmISA::ISA::zeroSveVecRegUpperPart(AA64FpDest2,
                         ArmStaticInst::getCurSveVecLen<uint64_t>(
                             xc->tcBase()));
                 '''
index 8f53369e9e75a7cab869e23c72ca31ab53a60f0f..03ad29409d0f532087ba70db31c4f4556e950344 100644 (file)
@@ -45,7 +45,7 @@ let {{
     exec_output = ''
 
     zeroSveVecRegUpperPartCode = '''
-        TheISA::ISA::zeroSveVecRegUpperPart(%s,
+        ArmISA::ISA::zeroSveVecRegUpperPart(%s,
             ArmStaticInst::getCurSveVecLen<uint64_t>(xc->tcBase()));
     '''
 
index e5e9e245045e2f3e67bdced7209a6ca0269b3d9b..c46a34da4ee7c13aa6ff776f2d1c8dd9b1e4311b 100644 (file)
@@ -1555,7 +1555,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxOp1 = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxOp1[i] = AA64FpOp1_x[i];
@@ -1616,7 +1616,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto tmpVec = tmpVecC.as<Element>();
         int ePow2Count = 1;
         while (ePow2Count < eCount) {
@@ -1761,7 +1761,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxOp2 = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount; i++) {
             auxOp2[i] = AA64FpOp2_ud[i];
@@ -1917,7 +1917,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxGpOp = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; i++) {
             auxGpOp[i] = GpOp_x[i];
@@ -1981,7 +1981,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto tmpPred = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i)
             tmpPred[i] = GpOp_x[i];
@@ -2140,7 +2140,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto tmpPred = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i)
             tmpPred[i] = GpOp_x[i];
@@ -2185,7 +2185,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto tmpPred = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i)
             tmpPred[i] = GpOp_x[i];
@@ -2268,7 +2268,7 @@ let {{
         unsigned eCount = ArmStaticInst::getCurSveVecLen<uint8_t>(
                 xc->tcBase());
         bool dobreak = false;
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxGpOp = tmpPredC.as<uint8_t>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxGpOp[i] = GpOp_ub[i];
@@ -2320,7 +2320,7 @@ let {{
         unsigned eCount = ArmStaticInst::getCurSveVecLen<uint8_t>(
                 xc->tcBase());
         bool last = POp1_ub.lastActive(GpOp_ub, eCount);
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxGpOp = tmpPredC.as<uint8_t>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxGpOp[i] = GpOp_ub[i];
@@ -2458,7 +2458,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxGpOp = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxGpOp[i] = GpOp_x[i];
@@ -2500,7 +2500,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxGpOp = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i)
             auxGpOp[i] = GpOp_x[i];
@@ -2568,14 +2568,14 @@ let {{
         if unpackHalf == Unpack.Low:
             if regType == SrcRegType.Predicate:
                 code += '''
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxPOp1 = tmpPredC.as<SElement>();
         for (int i = 0; i < eCount; ++i) {
             auxPOp1[i] = POp1_xs[i];
         }'''
             else:
                 code += '''
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxOp1 = tmpVecC.as<SElement>();
         for (int i = 0; i < eCount; ++i) {
             auxOp1[i] = AA64FpOp1_xs[i];
@@ -2636,7 +2636,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxOp1 = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxOp1[i] = AA64FpOp1_x[i];
@@ -2707,7 +2707,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxOp1 = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxOp1[i] = AA64FpOp1_x[i];
@@ -2736,7 +2736,7 @@ let {{
         code = sveEnabledCheckCode + '''
         unsigned eCount = ArmStaticInst::getCurSveVecLen<Element>(
                 xc->tcBase());
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxDest = tmpVecC.as<Element>();
         int firstelem = -1, lastelem = -2;
         for (int i = 0; i < eCount; ++i) {
@@ -2799,7 +2799,7 @@ let {{
                 xc->tcBase());'''
         if srcType == SrcRegType.Predicate:
             code += '''
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxPOp1 = tmpPredC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i) {
             uint8_t v = POp1_x.get_raw(i);
@@ -2808,7 +2808,7 @@ let {{
         PDest_x[0] = 0;'''
         else:
             code += '''
-        TheISA::VecRegContainer tmpRegC;
+        ArmISA::VecRegContainer tmpRegC;
         auto auxOp1 = tmpRegC.as<Element>();
         for (unsigned i = 0; i < eCount; ++i) {
             auxOp1[i] = AA64FpOp1_x[i];
@@ -4464,7 +4464,7 @@ let {{
         constexpr unsigned sz = sizeof(Element);
         int s;
         int part = %d;
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxPDest = tmpPredC.as<uint8_t>();
         for (unsigned i = 0; i < eCount / 2; i++) {
             s = 2 * i + part;
@@ -4485,7 +4485,7 @@ let {{
     trnIterCode = '''
         int s;
         int part = %d;
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxDest = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount / 2; i++) {
             s = 2 * i + part;
@@ -4681,7 +4681,7 @@ let {{
         constexpr unsigned sz = sizeof(Element);
         int s;
         int part = %d;
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxPDest = tmpPredC.as<uint8_t>();
         for (unsigned i = 0; i < eCount; i++) {
             s = 2 * i + part;
@@ -4705,7 +4705,7 @@ let {{
     uzpIterCode = '''
         int s;
         int part = %d;
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxDest = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount; i++) {
             s = 2 * i + part;
@@ -4766,7 +4766,7 @@ let {{
         constexpr unsigned sz = sizeof(Element);
         int s;
         int part = %d;
-        TheISA::VecPredRegContainer tmpPredC;
+        ArmISA::VecPredRegContainer tmpPredC;
         auto auxPDest = tmpPredC.as<uint8_t>();
         for (unsigned i = 0; i < eCount / 2; i++) {
             s = i + (part * (eCount / 2));
@@ -4787,7 +4787,7 @@ let {{
     zipIterCode = '''
         int s;
         int part = %d;
-        TheISA::VecRegContainer tmpVecC;
+        ArmISA::VecRegContainer tmpVecC;
         auto auxDest = tmpVecC.as<Element>();
         for (unsigned i = 0; i < eCount / 2; i++) {
             s = i + (part * (eCount / 2));
index 0f656dac949c62e93371b644703c0c81eda05d32..0a0469acc62e40d47ae6dc2b92527dd5a05c6471 100644 (file)
@@ -51,12 +51,12 @@ def operand_types {{
     'tud' : 'std::array<uint64_t, 2>',
     'sf' : 'float',
     'df' : 'double',
-    'vc' : 'TheISA::VecRegContainer',
+    'vc' : 'ArmISA::VecRegContainer',
     # For operations that are implemented as a template
     'x' : 'TPElem',
     'xs' : 'TPSElem',
     'xd' : 'TPDElem',
-    'pc' : 'TheISA::VecPredRegContainer',
+    'pc' : 'ArmISA::VecPredRegContainer',
     'pb' : 'uint8_t'
 }};
 
index 79e951ab5cf15649e9138fad5de5cb1428232551..3b6201def8b259133e7c0f2396ef73b3160eab3d 100644 (file)
@@ -47,7 +47,7 @@
 #include "cpu/static_inst.hh"
 #include "cpu/thread_context.hh"
 
-using namespace TheISA;
+using namespace ArmISA;
 
 namespace Trace {
 
index 7dab87b4325487223d76c3f45fa8ff293ee90e10..4e6cbe0f309f60ce65105726083c7d5427441f1d 100644 (file)
@@ -85,7 +85,7 @@ class TarmacBaseRecord : public InstRecord
     {
         InstEntry() = default;
         InstEntry(ThreadContext* thread,
-                  TheISA::PCState pc,
+                  ArmISA::PCState pc,
                   const StaticInstPtr staticInst,
                   bool predicate);
 
@@ -101,7 +101,7 @@ class TarmacBaseRecord : public InstRecord
     struct RegEntry
     {
         RegEntry() = default;
-        RegEntry(TheISA::PCState pc);
+        RegEntry(ArmISA::PCState pc);
 
         RegType type;
         RegIndex index;
@@ -123,7 +123,7 @@ class TarmacBaseRecord : public InstRecord
 
   public:
     TarmacBaseRecord(Tick _when, ThreadContext *_thread,
-                     const StaticInstPtr _staticInst, TheISA::PCState _pc,
+                     const StaticInstPtr _staticInst, ArmISA::PCState _pc,
                      const StaticInstPtr _macroStaticInst = NULL);
 
     virtual void dump() = 0;
@@ -135,7 +135,7 @@ class TarmacBaseRecord : public InstRecord
      * @param pc program counter (PCState) variable
      * @return Instruction Set State for the given PCState
      */
-    static ISetState pcToISetState(TheISA::PCState pc);
+    static ISetState pcToISetState(ArmISA::PCState pc);
 };
 
 
index 860bb1b0ba4f365d7fb368bd4b6053463cf0f94b..04a2a051e21ab2ef5f8ea66460bc297d7c28777d 100644 (file)
@@ -57,7 +57,7 @@
 #include "sim/sim_exit.hh"
 
 using namespace std;
-using namespace TheISA;
+using namespace ArmISA;
 
 namespace Trace {
 
@@ -743,7 +743,7 @@ TarmacParserRecord::TarmacParserRecordEvent::description() const
 
 void
 TarmacParserRecord::printMismatchHeader(const StaticInstPtr staticInst,
-                                        TheISA::PCState pc)
+                                        ArmISA::PCState pc)
 {
     ostream &outs = Trace::output();
     outs << "\nMismatch between gem5 and TARMAC trace @ " << dec << curTick()
@@ -776,8 +776,8 @@ TarmacParserRecord::dump()
     // By default TARMAC splits memory accesses into 4-byte chunks (see
     // 'loadstore-display-width' option in TARMAC plugin)
     uint32_t written_data = 0;
-    unsigned mem_flags = TheISA::TLB::MustBeOne | 3 |
-        TheISA::TLB::AllowUnaligned;
+    unsigned mem_flags = ArmISA::TLB::MustBeOne | 3 |
+        ArmISA::TLB::AllowUnaligned;
 
     ISetState isetstate;
 
@@ -1051,7 +1051,7 @@ TarmacParserRecord::readMemNoEffect(Addr addr, uint8_t *data, unsigned size,
                                     unsigned flags)
 {
     const RequestPtr &req = memReq;
-    TheISA::TLB* dtb = static_cast<TLB*>(thread->getDTBPtr());
+    ArmISA::TLB* dtb = static_cast<TLB*>(thread->getDTBPtr());
 
     req->setVirt(0, addr, size, flags, thread->pcState().instAddr(),
                  Request::funcMasterId);
index 6acdd627ef98b55cf8f5b431ed89ad6f6c5af47b..afba50fefc4edd4d047de47d1a7388a5b1b886c5 100644 (file)
@@ -83,7 +83,7 @@ class TarmacParserRecord : public TarmacBaseRecord
         /** Current instruction. */
         const StaticInstPtr inst;
         /** PC of the current instruction. */
-        TheISA::PCState pc;
+        ArmISA::PCState pc;
         /** True if a mismatch has been detected for this instruction. */
         bool mismatch;
         /**
@@ -95,7 +95,7 @@ class TarmacParserRecord : public TarmacBaseRecord
         TarmacParserRecordEvent(TarmacParser& _parent,
                                 ThreadContext *_thread,
                                 const StaticInstPtr _inst,
-                                TheISA::PCState _pc,
+                                ArmISA::PCState _pc,
                                 bool _mismatch,
                                 bool _mismatch_on_pc_or_opcode) :
             parent(_parent), thread(_thread), inst(_inst), pc(_pc),
@@ -130,10 +130,10 @@ class TarmacParserRecord : public TarmacBaseRecord
      * by gem5.
      */
     static void printMismatchHeader(const StaticInstPtr inst,
-                                    TheISA::PCState pc);
+                                    ArmISA::PCState pc);
 
     TarmacParserRecord(Tick _when, ThreadContext *_thread,
-                       const StaticInstPtr _staticInst, TheISA::PCState _pc,
+                       const StaticInstPtr _staticInst, ArmISA::PCState _pc,
                        TarmacParser& _parent,
                        const StaticInstPtr _macroStaticInst = NULL);
 
@@ -241,7 +241,7 @@ class TarmacParser : public InstTracer
 
     InstRecord *
     getInstRecord(Tick when, ThreadContext *tc, const StaticInstPtr staticInst,
-                  TheISA::PCState pc,
+                  ArmISA::PCState pc,
                   const StaticInstPtr macroStaticInst = NULL)
     {
         if (!started && pc.pc() == startPc)
index f54abf56a2e520ffc1262ac1328f2f78ae76f62a..d2534732c30f31355c8c77a1734f096895ee96fc 100644 (file)
@@ -178,7 +178,7 @@ class TarmacTracerRecord : public TarmacBaseRecord
 
   public:
     TarmacTracerRecord(Tick _when, ThreadContext *_thread,
-                       const StaticInstPtr _staticInst, TheISA::PCState _pc,
+                       const StaticInstPtr _staticInst, ArmISA::PCState _pc,
                        TarmacTracer& _tracer,
                        const StaticInstPtr _macroStaticInst = NULL);
 
index dea040992d46d0bd616bb1b37a66ec73397f65f0..90f1a6fc368a6bc3735fd97abc36d2cdc67c66c4 100644 (file)
@@ -56,7 +56,7 @@ TarmacTracerRecordV8::TraceInstEntryV8::TraceInstEntryV8(
     const auto thread = tarmCtx.thread;
 
     // Evaluate physical address
-    TheISA::TLB* dtb = static_cast<TLB*>(thread->getDTBPtr());
+    ArmISA::TLB* dtb = static_cast<TLB*>(thread->getDTBPtr());
     paddrValid = dtb->translateFunctional(thread, addr, paddr);
 }
 
@@ -70,7 +70,7 @@ TarmacTracerRecordV8::TraceMemEntryV8::TraceMemEntryV8(
     const auto thread = tarmCtx.thread;
 
     // Evaluate physical address
-    TheISA::TLB* dtb = static_cast<TLB*>(thread->getDTBPtr());
+    ArmISA::TLB* dtb = static_cast<TLB*>(thread->getDTBPtr());
     dtb->translateFunctional(thread, addr, paddr);
 }
 
index adf638f99da22184b17ef290089a5541474aca93..a727ea6a6ded88192f62b434a38df71e64c0e361 100644 (file)
@@ -130,7 +130,7 @@ class TarmacTracerRecordV8 : public TarmacTracerRecord
 
   public:
     TarmacTracerRecordV8(Tick _when, ThreadContext *_thread,
-                         const StaticInstPtr _staticInst, TheISA::PCState _pc,
+                         const StaticInstPtr _staticInst, ArmISA::PCState _pc,
                          TarmacTracer& _parent,
                          const StaticInstPtr _macroStaticInst = NULL)
       : TarmacTracerRecord(_when, _thread, _staticInst, _pc,
index b6f876de55f6792ae0bc9c9ebfd8503f750d9c01..41e4e49c41e6467e6e6d4e4cec3f552a70aada07 100644 (file)
@@ -75,7 +75,7 @@ TarmacTracer::TarmacTracer(const Params *p)
 InstRecord *
 TarmacTracer::getInstRecord(Tick when, ThreadContext *tc,
                            const StaticInstPtr staticInst,
-                           TheISA::PCState pc,
+                           ArmISA::PCState pc,
                            const StaticInstPtr macroStaticInst)
 {
     // Check if we need to start tracing since we have passed the
index 78739999d49320b324fa45c0fb88b05c76a61e6a..58a47d1755232abc7df4dc7a60d58958c15695b9 100644 (file)
@@ -63,7 +63,7 @@ class TarmacContext
   public:
     TarmacContext(ThreadContext* _thread,
                   const StaticInstPtr _staticInst,
-                  TheISA::PCState _pc)
+                  ArmISA::PCState _pc)
       : thread(_thread), staticInst(_staticInst), pc(_pc)
     {}
 
@@ -72,7 +72,7 @@ class TarmacContext
   public:
     ThreadContext* thread;
     const StaticInstPtr staticInst;
-    TheISA::PCState pc;
+    ArmISA::PCState pc;
 };
 
 /**
@@ -99,7 +99,7 @@ class TarmacTracer : public InstTracer
      */
     InstRecord* getInstRecord(Tick when, ThreadContext *tc,
                               const StaticInstPtr staticInst,
-                              TheISA::PCState pc,
+                              ArmISA::PCState pc,
                               const StaticInstPtr macroStaticInst = NULL);
 
   protected:
index bb20c4cc943b63c1112a7b6a4fa5e85eab9ca661..495845d7f84cf91eb7c371bcb592cc281d81de49 100644 (file)
@@ -268,7 +268,7 @@ copyMiscRegs(ThreadContext *src, ThreadContext *dest)
 void
 skipFunction(ThreadContext *tc)
 {
-    TheISA::PCState newPC = tc->pcState();
+    PCState newPC = tc->pcState();
     newPC.set(tc->readIntReg(ReturnAddressReg));
     tc->pcState(newPC);
 }
index aec91837c5ced2ee44bee23a27824457e814d943..093c649b38e157b19a9207d907024a865a19a1b2 100644 (file)
@@ -57,8 +57,6 @@ class ProcessInfo
 
 class StackTrace
 {
-  protected:
-    typedef TheISA::MachInst MachInst;
   private:
     ThreadContext *tc;
     std::vector<Addr> stack;
index f146ca8b340ccd576eca3f75b73293831fe311c1..62f9a471de80cc312cd1a6853c2be8217205fef4 100644 (file)
@@ -57,8 +57,6 @@ class ProcessInfo
 
 class StackTrace
 {
-  protected:
-    typedef TheISA::MachInst MachInst;
   private:
     ThreadContext *tc;
     std::vector<Addr> stack;
index 8b0b4ab320df3bf49221e3df8fb48a113a407efd..6b3e5d2044ce6c0adc8b7675ce6e067f19b22951 100644 (file)
@@ -248,7 +248,7 @@ copyRegs(ThreadContext *src, ThreadContext *dest)
 void
 skipFunction(ThreadContext *tc)
 {
-    TheISA::PCState newPC = tc->pcState();
+    PCState newPC = tc->pcState();
     newPC.set(tc->readIntReg(ReturnAddressReg));
     tc->pcState(newPC);
 }
index d01afbc25dfb12a732a3046fa1f9ce519301f83c..f4469bd020c89588d09d5f5aa601dca11f60e6cb 100644 (file)
@@ -150,7 +150,7 @@ X86_64Process::X86_64Process(ProcessParams *params, ObjectFile *objFile,
 void
 I386Process::syscall(int64_t callnum, ThreadContext *tc, Fault *fault)
 {
-    TheISA::PCState pc = tc->pcState();
+    PCState pc = tc->pcState();
     Addr eip = pc.pc();
     if (eip >= vsyscallPage.base &&
             eip < vsyscallPage.base + vsyscallPage.size) {