base.cc (5496:6899b894166f) | base.cc (5529:9ae69b9cd7fd) |
---|---|
1/* 2 * Copyright (c) 2002-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; --- 51 unchanged lines hidden (view full) --- 60#include "arch/stacktrace.hh" 61#include "arch/tlb.hh" 62#include "arch/vtophys.hh" 63#include "base/remote_gdb.hh" 64#else // !FULL_SYSTEM 65#include "mem/mem_object.hh" 66#endif // FULL_SYSTEM 67 | 1/* 2 * Copyright (c) 2002-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; --- 51 unchanged lines hidden (view full) --- 60#include "arch/stacktrace.hh" 61#include "arch/tlb.hh" 62#include "arch/vtophys.hh" 63#include "base/remote_gdb.hh" 64#else // !FULL_SYSTEM 65#include "mem/mem_object.hh" 66#endif // FULL_SYSTEM 67 |
68#include "params/BaseSimpleCPU.hh" 69 |
|
68using namespace std; 69using namespace TheISA; 70 | 70using namespace std; 71using namespace TheISA; 72 |
71BaseSimpleCPU::BaseSimpleCPU(Params *p) | 73BaseSimpleCPU::BaseSimpleCPU(BaseSimpleCPUParams *p) |
72 : BaseCPU(p), traceData(NULL), thread(NULL), predecoder(NULL) 73{ 74#if FULL_SYSTEM 75 thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb); 76#else | 74 : BaseCPU(p), traceData(NULL), thread(NULL), predecoder(NULL) 75{ 76#if FULL_SYSTEM 77 thread = new SimpleThread(this, 0, p->system, p->itb, p->dtb); 78#else |
77 thread = new SimpleThread(this, /* thread_num */ 0, p->process, | 79 thread = new SimpleThread(this, /* thread_num */ 0, p->workload[0], |
78 p->itb, p->dtb, /* asid */ 0); 79#endif // !FULL_SYSTEM 80 81 thread->setStatus(ThreadContext::Unallocated); 82 83 tc = thread->getTC(); 84 85 numInst = 0; --- 449 unchanged lines hidden --- | 80 p->itb, p->dtb, /* asid */ 0); 81#endif // !FULL_SYSTEM 82 83 thread->setStatus(ThreadContext::Unallocated); 84 85 tc = thread->getTC(); 86 87 numInst = 0; --- 449 unchanged lines hidden --- |