base.hh (5646:0a488a147fb8) | base.hh (5647:b06b49498c79) |
---|---|
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; --- 93 unchanged lines hidden (view full) --- 102 * @param begin_tick The tick that the event is completing on. 103 */ 104 Tick nextCycle(Tick begin_tick); 105 106#if FULL_SYSTEM 107 protected: 108// uint64_t interrupts[TheISA::NumInterruptLevels]; 109// uint64_t intstatus; | 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; --- 93 unchanged lines hidden (view full) --- 102 * @param begin_tick The tick that the event is completing on. 103 */ 104 Tick nextCycle(Tick begin_tick); 105 106#if FULL_SYSTEM 107 protected: 108// uint64_t interrupts[TheISA::NumInterruptLevels]; 109// uint64_t intstatus; |
110 TheISA::Interrupts interrupts; | 110 TheISA::Interrupts * interrupts; |
111 112 public: 113 TheISA::Interrupts * 114 getInterruptController() 115 { | 111 112 public: 113 TheISA::Interrupts * 114 getInterruptController() 115 { |
116 return &interrupts; | 116 return interrupts; |
117 } 118 119 virtual void post_interrupt(int int_num, int index); 120 virtual void clear_interrupt(int int_num, int index); 121 virtual void clear_interrupts(); 122 123 bool check_interrupts(ThreadContext * tc) const | 117 } 118 119 virtual void post_interrupt(int int_num, int index); 120 virtual void clear_interrupt(int int_num, int index); 121 virtual void clear_interrupts(); 122 123 bool check_interrupts(ThreadContext * tc) const |
124 { return interrupts.check_interrupts(tc); } | 124 { return interrupts->check_interrupts(tc); } |
125 126 class ProfileEvent : public Event 127 { 128 private: 129 BaseCPU *cpu; 130 Tick interval; 131 132 public: --- 149 unchanged lines hidden --- | 125 126 class ProfileEvent : public Event 127 { 128 private: 129 BaseCPU *cpu; 130 Tick interval; 131 132 public: --- 149 unchanged lines hidden --- |