base.hh (5999:3cf8e71257e0) base.hh (6144:e330f7bc22ef)
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;

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

56namespace TheISA
57{
58 class Predecoder;
59}
60
61class CPUProgressEvent : public Event
62{
63 protected:
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;

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

56namespace TheISA
57{
58 class Predecoder;
59}
60
61class CPUProgressEvent : public Event
62{
63 protected:
64 Tick interval;
64 Tick _interval;
65 Counter lastNumInst;
66 BaseCPU *cpu;
65 Counter lastNumInst;
66 BaseCPU *cpu;
67 bool _repeatEvent;
67
68 public:
68
69 public:
69 CPUProgressEvent(BaseCPU *_cpu, Tick ival);
70 CPUProgressEvent(BaseCPU *_cpu, Tick ival = 0);
70
71 void process();
72
71
72 void process();
73
74 void interval(Tick ival) { _interval = ival; }
75 Tick interval() { return _interval; }
76
77 void repeatEvent(bool repeat) { _repeatEvent = repeat; }
78
73 virtual const char *description() const;
74};
75
76class BaseCPU : public MemObject
77{
78 protected:
79 // CPU's clock period in terms of the number of ticks of curTime.
80 Tick clock;

--- 230 unchanged lines hidden ---
79 virtual const char *description() const;
80};
81
82class BaseCPU : public MemObject
83{
84 protected:
85 // CPU's clock period in terms of the number of ticks of curTime.
86 Tick clock;

--- 230 unchanged lines hidden ---