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 %s", name(), tc->pcState()); |
44} 45#else 46void FaultBase::invoke(ThreadContext * tc, StaticInstPtr inst) 47{ |
48 DPRINTF(Fault, "Fault %s at PC: %s\n", name(), tc->pcState()); |
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 --- |