changeset d947798df4a1 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=d947798df4a1
description:
Get rid of the unused get(Data|Inst)Asid and (inst|data)Asid functions.
diffstat:
22 files changed, 19 insertions(+), 148 deletions(-)
src/arch/alpha/ev5.cc | 12 ------------
src/arch/alpha/isa.hh | 5 -----
src/arch/mips/isa.hh | 10 ----------
src/arch/mips/mips_core_specific.cc | 15 ---------------
src/arch/mips/misc_regfile.cc | 11 -----------
src/arch/mips/misc_regfile.hh | 3 ---
src/arch/sparc/isa.hh | 11 -----------
src/arch/sparc/miscregfile.hh | 10 ----------
src/arch/x86/isa.hh | 12 ------------
src/cpu/checker/cpu.cc | 3 +--
src/cpu/inorder/cpu.cc | 4 ++--
src/cpu/inorder/cpu.hh | 8 --------
src/cpu/inorder/thread_state.hh | 4 ++--
src/cpu/o3/cpu.cc | 4 ++--
src/cpu/o3/cpu.hh | 17 -----------------
src/cpu/o3/thread_state.hh | 4 ++--
src/cpu/ozone/thread_state.hh | 5 ++---
src/cpu/simple/base.cc | 2 +-
src/cpu/simple_thread.cc | 6 +++---
src/cpu/simple_thread.hh | 5 +----
src/cpu/thread_state.cc | 5 ++---
src/cpu/thread_state.hh | 11 +----------
diffs (truncated from 432 to 300 lines):
diff -r 786136379872 -r d947798df4a1 src/arch/alpha/ev5.cc
--- a/src/arch/alpha/ev5.cc Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/alpha/ev5.cc Wed Jul 08 23:02:22 2009 -0700
@@ -127,18 +127,6 @@
cpu->thread->setFloatReg(ZeroReg, 0.0);
}
-int
-ISA::getInstAsid()
-{
- return ITB_ASN_ASN(ipr[IPR_ITB_ASN]);
-}
-
-int
-ISA::getDataAsid()
-{
- return DTB_ASN_ASN(ipr[IPR_DTB_ASN]);
-}
-
#endif
////////////////////////////////////////////////////////////////////////
diff -r 786136379872 -r d947798df4a1 src/arch/alpha/isa.hh
--- a/src/arch/alpha/isa.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/alpha/isa.hh Wed Jul 08 23:02:22 2009 -0700
@@ -65,11 +65,6 @@
public:
- // These functions should be removed once the simplescalar cpu
- // model has been replaced.
- int getInstAsid();
- int getDataAsid();
-
MiscReg readMiscRegNoEffect(int misc_reg, ThreadID tid = 0);
MiscReg readMiscReg(int misc_reg, ThreadContext *tc, ThreadID tid = 0);
diff -r 786136379872 -r d947798df4a1 src/arch/mips/isa.hh
--- a/src/arch/mips/isa.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/mips/isa.hh Wed Jul 08 23:02:22 2009 -0700
@@ -57,16 +57,6 @@
miscRegFile.reset(core_name, num_threads, num_vpes, _cpu);
}
- int instAsid()
- {
- return miscRegFile.getInstAsid();
- }
-
- int dataAsid()
- {
- return miscRegFile.getDataAsid();
- }
-
void clear();
MiscReg readMiscRegNoEffect(int miscReg);
diff -r 786136379872 -r d947798df4a1 src/arch/mips/mips_core_specific.cc
--- a/src/arch/mips/mips_core_specific.cc Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/mips/mips_core_specific.cc Wed Jul 08 23:02:22 2009 -0700
@@ -109,19 +109,4 @@
*/
}
-
-/*int
-MipsISA::MiscRegFile::getInstAsid()
-{
- return AlphaISA::ITB_ASN_ASN(ipr[IPR_ITB_ASN]);
-}
-
-int
-MipsISA::MiscRegFile::getDataAsid()
-{
- return AlphaISA::DTB_ASN_ASN(ipr[IPR_DTB_ASN]);
- }*/
-
-
-
#endif // FULL_SYSTEM || BARE_IRON
diff -r 786136379872 -r d947798df4a1 src/arch/mips/misc_regfile.cc
--- a/src/arch/mips/misc_regfile.cc Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/mips/misc_regfile.cc Wed Jul 08 23:02:22 2009 -0700
@@ -167,17 +167,6 @@
}
}
-int MiscRegFile::getInstAsid()
-{
- MiscReg Entry_Hi = readRegNoEffect(EntryHi);
- return bits(Entry_Hi,EntryHi_ASID_HI,EntryHi_ASID_LO);
-}
-
-int MiscRegFile:: getDataAsid()
-{
- MiscReg EHi = readRegNoEffect(EntryHi);
- return bits(EHi,EntryHi_ASID_HI,EntryHi_ASID_LO);
-}
//@TODO: Use MIPS STYLE CONSTANTS (e.g. TCHALT_H instead of TCH_H)
void
MiscRegFile::reset(std::string core_name, ThreadID num_threads,
diff -r 786136379872 -r d947798df4a1 src/arch/mips/misc_regfile.hh
--- a/src/arch/mips/misc_regfile.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/mips/misc_regfile.hh Wed Jul 08 23:02:22 2009 -0700
@@ -103,9 +103,6 @@
void setReg(int misc_reg, const MiscReg &val,
ThreadContext *tc, ThreadID tid = 0);
- int getInstAsid();
- int getDataAsid();
-
//////////////////////////////////////////////////////////
//
// DECLARE INTERFACE THAT WILL ALLOW A MiscRegFile (Cop0)
diff -r 786136379872 -r d947798df4a1 src/arch/sparc/isa.hh
--- a/src/arch/sparc/isa.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/sparc/isa.hh Wed Jul 08 23:02:22 2009 -0700
@@ -45,17 +45,6 @@
MiscRegFile miscRegFile;
public:
-
- int instAsid()
- {
- return miscRegFile.getInstAsid();
- }
-
- int dataAsid()
- {
- return miscRegFile.getDataAsid();
- }
-
void clear();
MiscReg readMiscRegNoEffect(int miscReg);
diff -r 786136379872 -r d947798df4a1 src/arch/sparc/miscregfile.hh
--- a/src/arch/sparc/miscregfile.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/sparc/miscregfile.hh Wed Jul 08 23:02:22 2009 -0700
@@ -158,16 +158,6 @@
void setReg(int miscReg,
const MiscReg &val, ThreadContext * tc);
- int getInstAsid()
- {
- return priContext | (uint32_t)partId << 13;
- }
-
- int getDataAsid()
- {
- return priContext | (uint32_t)partId << 13;
- }
-
void serialize(EventManager *em, std::ostream & os);
void unserialize(EventManager *em, Checkpoint *cp,
diff -r 786136379872 -r d947798df4a1 src/arch/x86/isa.hh
--- a/src/arch/x86/isa.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/arch/x86/isa.hh Wed Jul 08 23:02:22 2009 -0700
@@ -45,18 +45,6 @@
MiscRegFile miscRegFile;
public:
- int instAsid()
- {
- //XXX This doesn't make sense in x86
- return 0;
- }
-
- int dataAsid()
- {
- //XXX This doesn't make sense in x86
- return 0;
- }
-
void clear();
MiscReg readMiscRegNoEffect(int miscReg);
diff -r 786136379872 -r d947798df4a1 src/cpu/checker/cpu.cc
--- a/src/cpu/checker/cpu.cc Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/checker/cpu.cc Wed Jul 08 23:02:22 2009 -0700
@@ -72,8 +72,7 @@
systemPtr = NULL;
#else
process = p->process;
- thread = new SimpleThread(this, /* thread_num */ 0, process,
- /* asid */ 0);
+ thread = new SimpleThread(this, /* thread_num */ 0, process);
tc = thread->getTC();
threadContexts.push_back(tc);
diff -r 786136379872 -r d947798df4a1 src/cpu/inorder/cpu.cc
--- a/src/cpu/inorder/cpu.cc Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/inorder/cpu.cc Wed Jul 08 23:02:22 2009 -0700
@@ -207,12 +207,12 @@
DPRINTF(InOrderCPU, "Workload[%i] process is %#x\n",
tid, this->thread[tid]);
this->thread[tid] =
- new Thread(this, tid, params->workload[tid], tid);
+ new Thread(this, tid, params->workload[tid]);
} else {
//Allocate Empty thread so M5 can use later
//when scheduling threads to CPU
Process* dummy_proc = params->workload[0];
- this->thread[tid] = new Thread(this, tid, dummy_proc, tid);
+ this->thread[tid] = new Thread(this, tid, dummy_proc);
}
// Setup the TC that will serve as the interface to the threads/CPU.
diff -r 786136379872 -r d947798df4a1 src/cpu/inorder/cpu.hh
--- a/src/cpu/inorder/cpu.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/inorder/cpu.hh Wed Jul 08 23:02:22 2009 -0700
@@ -395,14 +395,6 @@
return cpuEventNum++;
}
- /** Get instruction asid. */
- int getInstAsid(ThreadID tid)
- { return thread[tid]->getInstAsid(); }
-
- /** Get data asid. */
- int getDataAsid(ThreadID tid)
- { return thread[tid]->getDataAsid(); }
-
/** Register file accessors */
uint64_t readIntReg(int reg_idx, ThreadID tid);
diff -r 786136379872 -r d947798df4a1 src/cpu/inorder/thread_state.hh
--- a/src/cpu/inorder/thread_state.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/inorder/thread_state.hh Wed Jul 08 23:02:22 2009 -0700
@@ -68,9 +68,9 @@
InOrderThreadState(InOrderCPU *_cpu, ThreadID _thread_num,
- Process *_process, int _asid)
+ Process *_process)
: ThreadState(reinterpret_cast<BaseCPU*>(_cpu), 0/*_thread_num*/,
- _process, 0/*_asid*/),
+ _process),
cpu(_cpu), inSyscall(0), trapPending(0)
{ }
diff -r 786136379872 -r d947798df4a1 src/cpu/o3/cpu.cc
--- a/src/cpu/o3/cpu.cc Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/o3/cpu.cc Wed Jul 08 23:02:22 2009 -0700
@@ -361,7 +361,7 @@
tid, this->thread[tid]);
this->thread[tid] = new typename FullO3CPU<Impl>::Thread(
(typename Impl::O3CPU *)(this),
- tid, params->workload[tid], tid);
+ tid, params->workload[tid]);
//usedTids[tid] = true;
//threadMap[tid] = tid;
@@ -372,7 +372,7 @@
this->thread[tid] = new typename FullO3CPU<Impl>::Thread(
(typename Impl::O3CPU *)(this),
- tid, dummy_proc, tid);
+ tid, dummy_proc);
//usedTids[tid] = false;
}
#endif // !FULL_SYSTEM
diff -r 786136379872 -r d947798df4a1 src/cpu/o3/cpu.hh
--- a/src/cpu/o3/cpu.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/o3/cpu.hh Wed Jul 08 23:02:22 2009 -0700
@@ -392,23 +392,6 @@
/** Check if this address is a valid data address. */
bool validDataAddr(Addr addr) { return true; }
-
- /** Get instruction asid. */
- int getInstAsid(ThreadID tid)
- { return isa[tid].instAsid(); }
-
- /** Get data asid. */
- int getDataAsid(ThreadID tid)
- { return isa[tid].dataAsid(); }
-#else
- /** Get instruction asid. */
- int getInstAsid(ThreadID tid)
- { return thread[tid]->getInstAsid(); }
-
- /** Get data asid. */
- int getDataAsid(ThreadID tid)
- { return thread[tid]->getDataAsid(); }
-
#endif
/** Register accessors. Index refers to the physical register index. */
diff -r 786136379872 -r d947798df4a1 src/cpu/o3/thread_state.hh
--- a/src/cpu/o3/thread_state.hh Wed Jul 08 23:02:22 2009 -0700
+++ b/src/cpu/o3/thread_state.hh Wed Jul 08 23:02:22 2009 -0700
@@ -95,8 +95,8 @@
profilePC = 3;
}
#else
- O3ThreadState(O3CPU *_cpu, int _thread_num, Process *_process, int _asid)
- : ThreadState(_cpu, _thread_num, _process, _asid),
+ O3ThreadState(O3CPU *_cpu, int _thread_num, Process *_process)
+ : ThreadState(_cpu, _thread_num, _process),
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev