faults.cc (7678:f19b6a3a8cec) | faults.cc (7720:65d338a8dba4) |
---|---|
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; --- 26 unchanged lines hidden (view full) --- 35#include "cpu/base.hh" 36#include "sim/faults.hh" 37#include "sim/process.hh" 38#include "mem/page_table.hh" 39 40#if !FULL_SYSTEM 41void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst) 42{ | 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; --- 26 unchanged lines hidden (view full) --- 35#include "cpu/base.hh" 36#include "sim/faults.hh" 37#include "sim/process.hh" 38#include "mem/page_table.hh" 39 40#if !FULL_SYSTEM 41void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst) 42{ |
43 panic("fault (%s) detected @ PC %p", name(), tc->readPC()); | 43 panic("fault (%s) detected @ PC %s", name(), tc->pcState()); |
44} 45#else 46void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst) 47{ | 44} 45#else 46void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst) 47{ |
48 DPRINTF(Fault, "Fault %s at PC: %#x\n", name(), tc->readPC()); 49 | 48 DPRINTF(Fault, "Fault %s at PC: %s\n", name(), tc->pcState()); |
50 assert(!tc->misspeculating()); 51} 52#endif 53 54void UnimpFault::invoke(ThreadContext * tc, StaticInstPtr inst) 55{ 56 panic("Unimpfault: %s\n", panicStr.c_str()); 57} --- 16 unchanged lines hidden --- | 49 assert(!tc->misspeculating()); 50} 51#endif 52 53void UnimpFault::invoke(ThreadContext * tc, StaticInstPtr inst) 54{ 55 panic("Unimpfault: %s\n", panicStr.c_str()); 56} --- 16 unchanged lines hidden --- |