isa.hh (9384:877293183bdf) isa.hh (9425:a24092160ec7)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

175 spsr_idx = MISCREG_SPSR;
176 break;
177 }
178 return spsr_idx;
179 }
180 return reg;
181 }
182
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

175 spsr_idx = MISCREG_SPSR;
176 break;
177 }
178 return spsr_idx;
179 }
180 return reg;
181 }
182
183 void serialize(EventManager *em, std::ostream &os)
183 void serialize(std::ostream &os)
184 {
185 DPRINTF(Checkpoint, "Serializing Arm Misc Registers\n");
186 SERIALIZE_ARRAY(miscRegs, NumMiscRegs);
187 }
184 {
185 DPRINTF(Checkpoint, "Serializing Arm Misc Registers\n");
186 SERIALIZE_ARRAY(miscRegs, NumMiscRegs);
187 }
188 void unserialize(EventManager *em, Checkpoint *cp,
189 const std::string &section)
188 void unserialize(Checkpoint *cp, const std::string &section)
190 {
191 DPRINTF(Checkpoint, "Unserializing Arm Misc Registers\n");
192 UNSERIALIZE_ARRAY(miscRegs, NumMiscRegs);
193 CPSR tmp_cpsr = miscRegs[MISCREG_CPSR];
194 updateRegMap(tmp_cpsr);
195 }
196
197 typedef ArmISAParams Params;
198
199 const Params *params() const;
200
201 ISA(Params *p);
202 };
203}
204
205#endif
189 {
190 DPRINTF(Checkpoint, "Unserializing Arm Misc Registers\n");
191 UNSERIALIZE_ARRAY(miscRegs, NumMiscRegs);
192 CPSR tmp_cpsr = miscRegs[MISCREG_CPSR];
193 updateRegMap(tmp_cpsr);
194 }
195
196 typedef ArmISAParams Params;
197
198 const Params *params() const;
199
200 ISA(Params *p);
201 };
202}
203
204#endif