cpu.hh (3402:db60546818d0) cpu.hh (3454:26850ac19a39)
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;

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

107 };
108
109 public:
110 CheckerCPU(Params *p);
111 virtual ~CheckerCPU();
112
113 Process *process;
114
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;

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

107 };
108
109 public:
110 CheckerCPU(Params *p);
111 virtual ~CheckerCPU();
112
113 Process *process;
114
115 void setMemory(MemObject *mem);
116
117 MemObject *memPtr;
118
115 void setSystem(System *system);
116
117 System *systemPtr;
118
119 void setIcachePort(Port *icache_port);
120
121 Port *icachePort;
122

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

319 void recordNextPCChange(uint64_t val) { changedNextPC = true; }
320
321 bool translateInstReq(Request *req);
322 void translateDataWriteReq(Request *req);
323 void translateDataReadReq(Request *req);
324
325#if FULL_SYSTEM
326 Fault hwrei() { return thread->hwrei(); }
119 void setSystem(System *system);
120
121 System *systemPtr;
122
123 void setIcachePort(Port *icache_port);
124
125 Port *icachePort;
126

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

323 void recordNextPCChange(uint64_t val) { changedNextPC = true; }
324
325 bool translateInstReq(Request *req);
326 void translateDataWriteReq(Request *req);
327 void translateDataReadReq(Request *req);
328
329#if FULL_SYSTEM
330 Fault hwrei() { return thread->hwrei(); }
327 int readIntrFlag() { return thread->readIntrFlag(); }
328 void setIntrFlag(int val) { thread->setIntrFlag(val); }
329 bool inPalMode() { return thread->inPalMode(); }
330 void ev5_trap(Fault fault) { fault->invoke(tc); }
331 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
332#else
333 // Assume that the normal CPU's call to syscall was successful.
334 // The checker's state would have already been updated by the syscall.
335 void syscall(uint64_t callnum) { }
336#endif

--- 76 unchanged lines hidden ---
331 bool inPalMode() { return thread->inPalMode(); }
332 void ev5_trap(Fault fault) { fault->invoke(tc); }
333 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); }
334#else
335 // Assume that the normal CPU's call to syscall was successful.
336 // The checker's state would have already been updated by the syscall.
337 void syscall(uint64_t callnum) { }
338#endif

--- 76 unchanged lines hidden ---