faults.cc (5004:7d94cedab264) faults.cc (5224:0e354459fb8a)
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)
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)
42{
43 fatal("fault (%s) detected @ PC %p", name(), tc->readPC());
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());

--- 23 unchanged lines hidden ---
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());

--- 23 unchanged lines hidden ---