From a2113fd3dc85798c7dcc1d67691ffd29a86ef5a0 Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Sun, 19 Nov 2006 17:43:03 -0500 Subject: Update Virtual and Physical ports. src/cpu/o3/alpha/cpu_impl.hh: Handle the PhysicalPort and VirtualPort in the ThreadState. src/cpu/o3/cpu.cc: Initialize the thread context. src/cpu/o3/thread_context.hh: Add new function to initialize thread context. src/cpu/o3/thread_context_impl.hh: Use code now put into function. src/cpu/simple_thread.cc: Move code to ThreadState and use the new helper function. src/cpu/simple_thread.hh: Remove init() in this derived class; use init() from ThreadState base class. src/cpu/thread_state.cc: Move setting up of Physical and Virtual ports here. Change getMemFuncPort() to connectToMemFunc(), which connects a port to a functional port of the memory object below the CPU. src/cpu/thread_state.hh: Update functions. --HG-- extra : convert_revision : ff254715ef0b259dc80d08f13543b63e4024ca8d --- src/cpu/thread_state.hh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/cpu/thread_state.hh') diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index 183ddcd2b..1844be8b7 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -91,6 +91,12 @@ struct ThreadState { Tick readLastSuspend() { return lastSuspend; } #if FULL_SYSTEM + void init(); + + void initPhysPort(); + + void initVirtPort(); + void dumpFuncProfile(); EndQuiesceEvent *getQuiesceEvent() { return quiesceEvent; } @@ -142,9 +148,9 @@ struct ThreadState { void setStatus(Status new_status) { _status = new_status; } public: - /** Gets a functional port from the memory object that's connected - * to the CPU. */ - Port *getMemFuncPort(); + /** Connects port to the functional port of the memory object + * below the CPU. */ + void connectToMemFunc(Port *port); /** Number of instructions committed. */ Counter numInst; -- cgit v1.2.3