cpu.hh (2880:a48d5059cd35) | cpu.hh (2905:62879b0282eb) |
---|---|
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; --- 316 unchanged lines hidden (view full) --- 325 * --------------------------------------- 326 * Note: this is a virtual function. CPU-Specific 327 * functionality defined in derived classes 328 */ 329 virtual void syscall(int tid) { panic("Unimplemented!"); } 330 331 /** Starts draining the CPU's pipeline of all instructions in 332 * order to stop all memory accesses. */ | 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; --- 316 unchanged lines hidden (view full) --- 325 * --------------------------------------- 326 * Note: this is a virtual function. CPU-Specific 327 * functionality defined in derived classes 328 */ 329 virtual void syscall(int tid) { panic("Unimplemented!"); } 330 331 /** Starts draining the CPU's pipeline of all instructions in 332 * order to stop all memory accesses. */ |
333 virtual bool drain(Event *drain_event); | 333 virtual unsigned int drain(Event *drain_event); |
334 335 /** Resumes execution after a drain. */ 336 virtual void resume(); 337 338 /** Signals to this CPU that a stage has completed switching out. */ 339 void signalDrained(); 340 341 /** Switches out this CPU. */ --- 333 unchanged lines hidden --- | 334 335 /** Resumes execution after a drain. */ 336 virtual void resume(); 337 338 /** Signals to this CPU that a stage has completed switching out. */ 339 void signalDrained(); 340 341 /** Switches out this CPU. */ --- 333 unchanged lines hidden --- |