base.hh (5712:199d31b47f7b) | base.hh (5715:e8c1d4e669a7) |
---|---|
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; --- 68 unchanged lines hidden (view full) --- 77{ 78 protected: 79 // CPU's clock period in terms of the number of ticks of curTime. 80 Tick clock; 81 // @todo remove me after debugging with legion done 82 Tick instCnt; 83 // every cpu has an id, put it in the base cpu 84 // Set at initialization, only time a cpuId might change is during a | 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; --- 68 unchanged lines hidden (view full) --- 77{ 78 protected: 79 // CPU's clock period in terms of the number of ticks of curTime. 80 Tick clock; 81 // @todo remove me after debugging with legion done 82 Tick instCnt; 83 // every cpu has an id, put it in the base cpu 84 // Set at initialization, only time a cpuId might change is during a |
85 // takeover (which should be done from within the BaseCPU anyway, | 85 // takeover (which should be done from within the BaseCPU anyway, |
86 // therefore no setCpuId() method is provided 87 int _cpuId; 88 89 public: 90 /** Reads this CPU's ID. */ 91 int cpuId() { return _cpuId; } 92 93// Tick currentTick; --- 200 unchanged lines hidden --- | 86 // therefore no setCpuId() method is provided 87 int _cpuId; 88 89 public: 90 /** Reads this CPU's ID. */ 91 int cpuId() { return _cpuId; } 92 93// Tick currentTick; --- 200 unchanged lines hidden --- |