atomic.hh (5487:f0ac4112e128) | atomic.hh (5496:6899b894166f) |
---|---|
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; --- 34 unchanged lines hidden (view full) --- 43 bool simulate_inst_stalls; 44 }; 45 46 AtomicSimpleCPU(Params *params); 47 virtual ~AtomicSimpleCPU(); 48 49 virtual void init(); 50 | 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; --- 34 unchanged lines hidden (view full) --- 43 bool simulate_inst_stalls; 44 }; 45 46 AtomicSimpleCPU(Params *params); 47 virtual ~AtomicSimpleCPU(); 48 49 virtual void init(); 50 |
51 public: 52 // 53 enum Status { 54 Running, 55 Idle, 56 SwitchedOut 57 }; 58 59 protected: 60 Status _status; 61 62 Status status() const { return _status; } 63 | |
64 private: 65 66 struct TickEvent : public Event 67 { 68 AtomicSimpleCPU *cpu; 69 70 TickEvent(AtomicSimpleCPU *c); 71 void process(); --- 98 unchanged lines hidden --- | 51 private: 52 53 struct TickEvent : public Event 54 { 55 AtomicSimpleCPU *cpu; 56 57 TickEvent(AtomicSimpleCPU *c); 58 void process(); --- 98 unchanged lines hidden --- |