interrupts.hh (10474:799c8ee4ecba) interrupts.hh (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2006 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;

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

186 uint64_t
187 get_vec(int int_num)
188 {
189 assert(int_num >= 0 && int_num < NumInterruptTypes);
190 return interrupts[int_num];
191 }
192
193 void
1/*
2 * Copyright (c) 2006 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;

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

186 uint64_t
187 get_vec(int int_num)
188 {
189 assert(int_num >= 0 && int_num < NumInterruptTypes);
190 return interrupts[int_num];
191 }
192
193 void
194 serialize(std::ostream &os)
194 serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE
195 {
196 SERIALIZE_ARRAY(interrupts,NumInterruptTypes);
197 SERIALIZE_SCALAR(intStatus);
198 }
199
200 void
195 {
196 SERIALIZE_ARRAY(interrupts,NumInterruptTypes);
197 SERIALIZE_SCALAR(intStatus);
198 }
199
200 void
201 unserialize(Checkpoint *cp, const std::string &section)
201 unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE
202 {
203 UNSERIALIZE_ARRAY(interrupts,NumInterruptTypes);
204 UNSERIALIZE_SCALAR(intStatus);
205 }
206};
207} // namespace SPARC_ISA
208
209#endif // __ARCH_SPARC_INTERRUPT_HH__
202 {
203 UNSERIALIZE_ARRAY(interrupts,NumInterruptTypes);
204 UNSERIALIZE_SCALAR(intStatus);
205 }
206};
207} // namespace SPARC_ISA
208
209#endif // __ARCH_SPARC_INTERRUPT_HH__