thread_state.hh (2980:eab855f06b79) | thread_state.hh (3125:febd811bccc6) |
---|---|
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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Kevin Lim 29 */ 30 31#ifndef __CPU_THREAD_STATE_HH__ 32#define __CPU_THREAD_STATE_HH__ 33 34#include "arch/types.hh" | 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Kevin Lim 29 */ 30 31#ifndef __CPU_THREAD_STATE_HH__ 32#define __CPU_THREAD_STATE_HH__ 33 34#include "arch/types.hh" |
35#include "cpu/profile.hh" |
|
35#include "cpu/thread_context.hh" 36 37#if !FULL_SYSTEM 38#include "mem/mem_object.hh" 39#include "mem/translating_port.hh" 40#include "sim/process.hh" 41#endif 42 --- 143 unchanged lines hidden (view full) --- 186 TranslatingPort *port; 187 188 Process *process; 189 190 // Address space ID. Note that this is used for TIMING cache 191 // simulation only; all functional memory accesses should use 192 // one of the FunctionalMemory pointers above. 193 short asid; | 36#include "cpu/thread_context.hh" 37 38#if !FULL_SYSTEM 39#include "mem/mem_object.hh" 40#include "mem/translating_port.hh" 41#include "sim/process.hh" 42#endif 43 --- 143 unchanged lines hidden (view full) --- 187 TranslatingPort *port; 188 189 Process *process; 190 191 // Address space ID. Note that this is used for TIMING cache 192 // simulation only; all functional memory accesses should use 193 // one of the FunctionalMemory pointers above. 194 short asid; |
195 |
|
194#endif 195 | 196#endif 197 |
198#if FULL_SYSTEM 199 void profileClear() 200 { 201 if (profile) 202 profile->clear(); 203 } 204 205 void profileSample() 206 { 207 if (profile) 208 profile->sample(profileNode, profilePC); 209 } 210#endif 211 |
|
196 /** Current instruction the thread is committing. Only set and 197 * used for DTB faults currently. 198 */ 199 TheISA::MachInst inst; 200 201 public: 202 /** 203 * Temporary storage to pass the source address from copy_load to --- 23 unchanged lines hidden --- | 212 /** Current instruction the thread is committing. Only set and 213 * used for DTB faults currently. 214 */ 215 TheISA::MachInst inst; 216 217 public: 218 /** 219 * Temporary storage to pass the source address from copy_load to --- 23 unchanged lines hidden --- |