Deleted Added
sdiff udiff text old ( 6323:fd0f91f067d2 ) new ( 6324:a535b2232c08 )
full compact
1/*
2 * Copyright (c) 2001-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;

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

102 RegFile regs; // correct-path register context
103 union {
104 FloatReg f[TheISA::NumFloatRegs];
105 FloatRegBits i[TheISA::NumFloatRegs];
106 } floatRegs;
107 TheISA::IntReg intRegs[TheISA::NumIntRegs];
108 TheISA::ISA isa; // one "instance" of the current ISA.
109
110 public:
111 // pointer to CPU associated with this SimpleThread
112 BaseCPU *cpu;
113
114 ProxyThreadContext<SimpleThread> *tc;
115
116 System *system;
117

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

227 return NoFault;
228 }
229
230 void copyArchRegs(ThreadContext *tc);
231
232 void clearArchRegs()
233 {
234 regs.clear();
235 memset(intRegs, 0, sizeof(intRegs));
236 memset(floatRegs.i, 0, sizeof(floatRegs.i));
237 }
238
239 //
240 // New accessors for new decoder.
241 //
242 uint64_t readIntReg(int reg_idx)

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

278 {
279 int flatIndex = isa.flattenFloatIndex(reg_idx);
280 assert(flatIndex < TheISA::NumFloatRegs);
281 floatRegs.i[flatIndex] = val;
282 }
283
284 uint64_t readPC()
285 {
286 return regs.readPC();
287 }
288
289 void setPC(uint64_t val)
290 {
291 regs.setPC(val);
292 }
293
294 uint64_t readMicroPC()
295 {
296 return microPC;
297 }
298
299 void setMicroPC(uint64_t val)
300 {
301 microPC = val;
302 }
303
304 uint64_t readNextPC()
305 {
306 return regs.readNextPC();
307 }
308
309 void setNextPC(uint64_t val)
310 {
311 regs.setNextPC(val);
312 }
313
314 uint64_t readNextMicroPC()
315 {
316 return nextMicroPC;
317 }
318
319 void setNextMicroPC(uint64_t val)
320 {
321 nextMicroPC = val;
322 }
323
324 uint64_t readNextNPC()
325 {
326 return regs.readNextNPC();
327 }
328
329 void setNextNPC(uint64_t val)
330 {
331 regs.setNextNPC(val);
332 }
333
334 MiscReg
335 readMiscRegNoEffect(int misc_reg, ThreadID tid = 0)
336 {
337 return isa.readMiscRegNoEffect(misc_reg);
338 }
339

--- 52 unchanged lines hidden ---