cpu.hh (2674:6d4afef73a20) | cpu.hh (2680:246e7104f744) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 38 unchanged lines hidden (view full) --- 47#include "cpu/o3/comm.hh" 48#include "cpu/o3/cpu_policy.hh" 49#include "cpu/o3/scoreboard.hh" 50#include "cpu/o3/thread_state.hh" 51#include "sim/process.hh" 52 53template <class> 54class Checker; | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 38 unchanged lines hidden (view full) --- 47#include "cpu/o3/comm.hh" 48#include "cpu/o3/cpu_policy.hh" 49#include "cpu/o3/scoreboard.hh" 50#include "cpu/o3/thread_state.hh" 51#include "sim/process.hh" 52 53template <class> 54class Checker; |
55class ExecContext; | 55class ThreadContext; |
56class MemObject; 57class Process; 58 59class BaseFullCPU : public BaseCPU 60{ 61 //Stuff that's pretty ISA independent will go here. 62 public: 63 typedef BaseCPU::Params Params; --- 386 unchanged lines hidden (view full) --- 450 451 /** Wakes the CPU, rescheduling the CPU if it's not already active. */ 452 void wakeCPU(); 453 454 /** Gets a free thread id. Use if thread ids change across system. */ 455 int getFreeTid(); 456 457 public: | 56class MemObject; 57class Process; 58 59class BaseFullCPU : public BaseCPU 60{ 61 //Stuff that's pretty ISA independent will go here. 62 public: 63 typedef BaseCPU::Params Params; --- 386 unchanged lines hidden (view full) --- 450 451 /** Wakes the CPU, rescheduling the CPU if it's not already active. */ 452 void wakeCPU(); 453 454 /** Gets a free thread id. Use if thread ids change across system. */ 455 int getFreeTid(); 456 457 public: |
458 /** Returns a pointer to a thread's exec context. */ 459 ExecContext *xcBase(unsigned tid) | 458 /** Returns a pointer to a thread context. */ 459 ThreadContext *tcBase(unsigned tid) |
460 { | 460 { |
461 return thread[tid]->getXCProxy(); | 461 return thread[tid]->getTC(); |
462 } 463 464 /** The global sequence number counter. */ 465 InstSeqNum globalSeqNum; 466 467 /** Pointer to the checker, which can dynamically verify 468 * instruction results at run time. This can be set to NULL if it 469 * is not being used. --- 75 unchanged lines hidden --- | 462 } 463 464 /** The global sequence number counter. */ 465 InstSeqNum globalSeqNum; 466 467 /** Pointer to the checker, which can dynamically verify 468 * instruction results at run time. This can be set to NULL if it 469 * is not being used. --- 75 unchanged lines hidden --- |