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; --- 85 unchanged lines hidden (view full) --- 94 public: 95 virtual void init(); 96 97 struct Params : public BaseCPU::Params 98 { 99#if FULL_SYSTEM 100 AlphaITB *itb; 101 AlphaDTB *dtb; |
102#else 103 Process *process; 104#endif 105 bool exitOnError; 106 }; 107 108 public: 109 CheckerCPU(Params *p); 110 virtual ~CheckerCPU(); 111 112 Process *process; 113 114 void setMemory(MemObject *mem); 115 116 MemObject *memPtr; 117 |
118 void setSystem(System *system); 119 120 System *systemPtr; |
121 122 void setIcachePort(Port *icache_port); 123 124 Port *icachePort; 125 126 void setDcachePort(Port *dcache_port); 127 128 Port *dcachePort; --- 190 unchanged lines hidden (view full) --- 319 void translateDataWriteReq(Request *req); 320 void translateDataReadReq(Request *req); 321 322#if FULL_SYSTEM 323 Fault hwrei() { return thread->hwrei(); } 324 int readIntrFlag() { return thread->readIntrFlag(); } 325 void setIntrFlag(int val) { thread->setIntrFlag(val); } 326 bool inPalMode() { return thread->inPalMode(); } |
327 void ev5_trap(Fault fault) { fault->invoke(tc); } |
328 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); } 329#else 330 // Assume that the normal CPU's call to syscall was successful. 331 // The checker's state would have already been updated by the syscall. 332 void syscall(uint64_t callnum) { } 333#endif 334 335 void handleError() --- 51 unchanged lines hidden --- |