faults.cc (6815:9eb8c185c548) | faults.cc (7460:41550bb10e08) |
---|---|
1/* 2 * Copyright (c) 2003-2005 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; --- 32 unchanged lines hidden (view full) --- 41void FaultBase::invoke(ThreadContext * tc) 42{ 43 panic("fault (%s) detected @ PC %p", name(), tc->readPC()); 44} 45#else 46void FaultBase::invoke(ThreadContext * tc) 47{ 48 DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), tc->readPC()); | 1/* 2 * Copyright (c) 2003-2005 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; --- 32 unchanged lines hidden (view full) --- 41void FaultBase::invoke(ThreadContext * tc) 42{ 43 panic("fault (%s) detected @ PC %p", name(), tc->readPC()); 44} 45#else 46void FaultBase::invoke(ThreadContext * tc) 47{ 48 DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), tc->readPC()); |
49 tc->getCpuPtr()->recordEvent(csprintf("Fault %s", name())); | |
50 51 assert(!tc->misspeculating()); 52} 53#endif 54 55void UnimpFault::invoke(ThreadContext * tc) 56{ 57 panic("Unimpfault: %s\n", panicStr.c_str()); --- 17 unchanged lines hidden --- | 49 50 assert(!tc->misspeculating()); 51} 52#endif 53 54void UnimpFault::invoke(ThreadContext * tc) 55{ 56 panic("Unimpfault: %s\n", panicStr.c_str()); --- 17 unchanged lines hidden --- |