timing.hh (5336:c7e21f4e5a2e) timing.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;

--- 32 unchanged lines hidden (view full) ---

41 };
42
43 TimingSimpleCPU(Params *params);
44 virtual ~TimingSimpleCPU();
45
46 virtual void init();
47
48 public:
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;

--- 32 unchanged lines hidden (view full) ---

41 };
42
43 TimingSimpleCPU(Params *params);
44 virtual ~TimingSimpleCPU();
45
46 virtual void init();
47
48 public:
49 //
50 enum Status {
51 Idle,
52 Running,
53 IcacheRetry,
54 IcacheWaitResponse,
55 IcacheWaitSwitch,
56 DcacheRetry,
57 DcacheWaitResponse,
58 DcacheWaitSwitch,
59 SwitchedOut
60 };
61
62 protected:
63 Status _status;
64
65 Status status() const { return _status; }
66
67 Event *drainEvent;
68
69 private:
70
71 class CpuPort : public Port
72 {
73 protected:
74 TimingSimpleCPU *cpu;

--- 154 unchanged lines hidden ---
49 Event *drainEvent;
50
51 private:
52
53 class CpuPort : public Port
54 {
55 protected:
56 TimingSimpleCPU *cpu;

--- 154 unchanged lines hidden ---