faults.hh (8545:a3992291e230) faults.hh (8569:498d3aacd292)
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;

--- 43 unchanged lines hidden (view full) ---

52// generic FaultBase name.
53
54class FaultBase : public RefCounted
55{
56 public:
57 virtual FaultName name() const = 0;
58 virtual void invoke(ThreadContext * tc,
59 StaticInstPtr inst = StaticInst::nullStaticInstPtr);
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;

--- 43 unchanged lines hidden (view full) ---

52// generic FaultBase name.
53
54class FaultBase : public RefCounted
55{
56 public:
57 virtual FaultName name() const = 0;
58 virtual void invoke(ThreadContext * tc,
59 StaticInstPtr inst = StaticInst::nullStaticInstPtr);
60 virtual bool isMachineCheckFault() const {return false;}
61 virtual bool isAlignmentFault() const {return false;}
62};
63
64class UnimpFault : public FaultBase
65{
66 private:
67 std::string panicStr;
68 public:
69 UnimpFault(std::string _str)

--- 43 unchanged lines hidden ---
60};
61
62class UnimpFault : public FaultBase
63{
64 private:
65 std::string panicStr;
66 public:
67 UnimpFault(std::string _str)

--- 43 unchanged lines hidden ---