faults.cc (7678:f19b6a3a8cec) | faults.cc (7681:61e31534522d) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 256 unchanged lines hidden (view full) --- 265 266 tc->setPC(tc->readMiscReg(MISCREG_CS_BASE)); 267 tc->setNextPC(tc->readPC() + sizeof(MachInst)); 268 } 269 270#else 271 272 void | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 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 --- 256 unchanged lines hidden (view full) --- 265 266 tc->setPC(tc->readMiscReg(MISCREG_CS_BASE)); 267 tc->setNextPC(tc->readPC() + sizeof(MachInst)); 268 } 269 270#else 271 272 void |
273 InvalidOpcode::invoke(ThreadContext * tc, StaticInstPtr inst) 274 { 275 panic("Unrecognized/invalid instruction executed:\n %s", 276 inst->machInst); 277 } 278 279 void |
|
273 PageFault::invoke(ThreadContext * tc, StaticInstPtr inst) 274 { 275 PageFaultErrorCode code = errorCode; 276 const char *modeStr = ""; 277 if (code.fetch) 278 modeStr = "execute"; 279 else if (code.write) 280 modeStr = "write"; 281 else 282 modeStr = "read"; 283 panic("Tried to %s unmapped address %#x.\n", modeStr, addr); 284 } 285 286#endif 287} // namespace X86ISA 288 | 280 PageFault::invoke(ThreadContext * tc, StaticInstPtr inst) 281 { 282 PageFaultErrorCode code = errorCode; 283 const char *modeStr = ""; 284 if (code.fetch) 285 modeStr = "execute"; 286 else if (code.write) 287 modeStr = "write"; 288 else 289 modeStr = "read"; 290 panic("Tried to %s unmapped address %#x.\n", modeStr, addr); 291 } 292 293#endif 294} // namespace X86ISA 295 |