cpu_impl.hh (2789:f99d51ed08d6) | cpu_impl.hh (2838:8e81edd2fdbf) |
---|---|
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; --- 222 unchanged lines hidden (view full) --- 231 } 232 233 if (fault != NoFault) { 234#if FULL_SYSTEM 235 fault->invoke(tc); 236 willChangePC = true; 237 newPC = thread->readPC(); 238 DPRINTF(Checker, "Fault, PC is now %#x\n", newPC); | 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; --- 222 unchanged lines hidden (view full) --- 231 } 232 233 if (fault != NoFault) { 234#if FULL_SYSTEM 235 fault->invoke(tc); 236 willChangePC = true; 237 newPC = thread->readPC(); 238 DPRINTF(Checker, "Fault, PC is now %#x\n", newPC); |
239#else // !FULL_SYSTEM 240 fatal("fault (%d) detected @ PC 0x%08p", fault, thread->readPC()); 241#endif // FULL_SYSTEM | 239#endif |
242 } else { 243#if THE_ISA != MIPS_ISA 244 // go to the next instruction 245 thread->setPC(thread->readNextPC()); 246 thread->setNextPC(thread->readNextPC() + sizeof(MachInst)); 247#else 248 // go to the next instruction 249 thread->setPC(thread->readNextPC()); --- 211 unchanged lines hidden --- | 240 } else { 241#if THE_ISA != MIPS_ISA 242 // go to the next instruction 243 thread->setPC(thread->readNextPC()); 244 thread->setNextPC(thread->readNextPC() + sizeof(MachInst)); 245#else 246 // go to the next instruction 247 thread->setPC(thread->readNextPC()); --- 211 unchanged lines hidden --- |