thread_context.hh (4172:141705d83494) thread_context.hh (4997:e7380529bd2d)
1/*
2 * Copyright (c) 2004-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;

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

61 typedef typename Impl::O3CPU O3CPU;
62
63 /** Pointer to the CPU. */
64 O3CPU *cpu;
65
66 /** Pointer to the thread state that this TC corrseponds to. */
67 O3ThreadState<Impl> *thread;
68
1/*
2 * Copyright (c) 2004-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;

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

61 typedef typename Impl::O3CPU O3CPU;
62
63 /** Pointer to the CPU. */
64 O3CPU *cpu;
65
66 /** Pointer to the thread state that this TC corrseponds to. */
67 O3ThreadState<Impl> *thread;
68
69#if FULL_SYSTEM
70 /** Returns a pointer to the ITB. */
71 TheISA::ITB *getITBPtr() { return cpu->itb; }
72
73 /** Returns a pointer to the DTB. */
74 TheISA::DTB *getDTBPtr() { return cpu->dtb; }
69 /** Returns a pointer to the ITB. */
70 TheISA::ITB *getITBPtr() { return cpu->itb; }
71
72 /** Returns a pointer to the DTB. */
73 TheISA::DTB *getDTBPtr() { return cpu->dtb; }
75#endif
76
77 /** Returns a pointer to this CPU. */
78 virtual BaseCPU *getCpuPtr() { return cpu; }
79
80 /** Sets this CPU's ID. */
81 virtual void setCpuId(int id) { cpu->setCpuId(id); }
82
83 /** Reads this CPU's ID. */

--- 177 unchanged lines hidden ---
74
75 /** Returns a pointer to this CPU. */
76 virtual BaseCPU *getCpuPtr() { return cpu; }
77
78 /** Sets this CPU's ID. */
79 virtual void setCpuId(int id) { cpu->setCpuId(id); }
80
81 /** Reads this CPU's ID. */

--- 177 unchanged lines hidden ---