thread_context.hh (3521:0b0b3551def0) thread_context.hh (3548:85e64c82c522)
1/*
2 * Copyright (c) 2006 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;

--- 23 unchanged lines hidden (view full) ---

32#define __CPU_CHECKER_THREAD_CONTEXT_HH__
33
34#include "arch/types.hh"
35#include "cpu/checker/cpu.hh"
36#include "cpu/simple_thread.hh"
37#include "cpu/thread_context.hh"
38
39class EndQuiesceEvent;
1/*
2 * Copyright (c) 2006 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;

--- 23 unchanged lines hidden (view full) ---

32#define __CPU_CHECKER_THREAD_CONTEXT_HH__
33
34#include "arch/types.hh"
35#include "cpu/checker/cpu.hh"
36#include "cpu/simple_thread.hh"
37#include "cpu/thread_context.hh"
38
39class EndQuiesceEvent;
40namespace Kernel {
41 class Statistics;
40namespace TheISA {
41 namespace Kernel {
42 class Statistics;
43 };
42};
43
44/**
45 * Derived ThreadContext class for use with the Checker. The template
46 * parameter is the ThreadContext class used by the specific CPU being
47 * verified. This CheckerThreadContext is then used by the main CPU
48 * in place of its usual ThreadContext class. It handles updating the
49 * checker's state any time state is updated externally through the

--- 36 unchanged lines hidden (view full) ---

86 System *getSystemPtr() { return actualTC->getSystemPtr(); }
87
88 PhysicalMemory *getPhysMemPtr() { return actualTC->getPhysMemPtr(); }
89
90 TheISA::ITB *getITBPtr() { return actualTC->getITBPtr(); }
91
92 TheISA::DTB *getDTBPtr() { return actualTC->getDTBPtr(); }
93
44};
45
46/**
47 * Derived ThreadContext class for use with the Checker. The template
48 * parameter is the ThreadContext class used by the specific CPU being
49 * verified. This CheckerThreadContext is then used by the main CPU
50 * in place of its usual ThreadContext class. It handles updating the
51 * checker's state any time state is updated externally through the

--- 36 unchanged lines hidden (view full) ---

88 System *getSystemPtr() { return actualTC->getSystemPtr(); }
89
90 PhysicalMemory *getPhysMemPtr() { return actualTC->getPhysMemPtr(); }
91
92 TheISA::ITB *getITBPtr() { return actualTC->getITBPtr(); }
93
94 TheISA::DTB *getDTBPtr() { return actualTC->getDTBPtr(); }
95
94 Kernel::Statistics *getKernelStats() { return actualTC->getKernelStats(); }
96 TheISA::Kernel::Statistics *getKernelStats()
97 { return actualTC->getKernelStats(); }
95
96 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
97
98 VirtualPort *getVirtPort(ThreadContext *tc = NULL)
99 { return actualTC->getVirtPort(); }
100
101 void delVirtPort(VirtualPort *vp) { actualTC->delVirtPort(vp); }
102#else

--- 202 unchanged lines hidden ---
98
99 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
100
101 VirtualPort *getVirtPort(ThreadContext *tc = NULL)
102 { return actualTC->getVirtPort(); }
103
104 void delVirtPort(VirtualPort *vp) { actualTC->delVirtPort(vp); }
105#else

--- 202 unchanged lines hidden ---