cpu.hh (2834:c8342a71404b) | cpu.hh (2840:227f7c4f8c81) |
---|---|
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; --- 257 unchanged lines hidden (view full) --- 266 /** Executes a syscall on this cycle. 267 * --------------------------------------- 268 * Note: this is a virtual function. CPU-Specific 269 * functionality defined in derived classes 270 */ 271 virtual void syscall(int tid) { panic("Unimplemented!"); } 272 273 /** Switches out this CPU. */ | 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; --- 257 unchanged lines hidden (view full) --- 266 /** Executes a syscall on this cycle. 267 * --------------------------------------- 268 * Note: this is a virtual function. CPU-Specific 269 * functionality defined in derived classes 270 */ 271 virtual void syscall(int tid) { panic("Unimplemented!"); } 272 273 /** Switches out this CPU. */ |
274 void switchOut(Sampler *sampler); | 274 void switchOut(); |
275 276 /** Signals to this CPU that a stage has completed switching out. */ 277 void signalSwitched(); 278 279 /** Takes over from another CPU. */ 280 void takeOverFrom(BaseCPU *oldCPU); 281 282 /** Get the current instruction sequence number, and increment it. */ --- 262 unchanged lines hidden (view full) --- 545 546 /** Pointer to physical memory. */ 547 PhysicalMemory *physmem; 548#endif 549 550 /** Pointer to memory. */ 551 MemObject *mem; 552 | 275 276 /** Signals to this CPU that a stage has completed switching out. */ 277 void signalSwitched(); 278 279 /** Takes over from another CPU. */ 280 void takeOverFrom(BaseCPU *oldCPU); 281 282 /** Get the current instruction sequence number, and increment it. */ --- 262 unchanged lines hidden (view full) --- 545 546 /** Pointer to physical memory. */ 547 PhysicalMemory *physmem; 548#endif 549 550 /** Pointer to memory. */ 551 MemObject *mem; 552 |
553 /** Pointer to the sampler */ 554 Sampler *sampler; 555 | |
556 /** Counter of how many stages have completed switching out. */ 557 int switchCount; 558 559 /** Pointers to all of the threads in the CPU. */ 560 std::vector<Thread *> thread; 561 562 /** Pointer to the icache interface. */ 563 MemInterface *icacheInterface; --- 46 unchanged lines hidden --- | 553 /** Counter of how many stages have completed switching out. */ 554 int switchCount; 555 556 /** Pointers to all of the threads in the CPU. */ 557 std::vector<Thread *> thread; 558 559 /** Pointer to the icache interface. */ 560 MemInterface *icacheInterface; --- 46 unchanged lines hidden --- |