faults.hh (2800:18a615ca6e19) faults.hh (3415:72c48f292f6a)
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;

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

34
35#include "sim/faults.hh"
36
37// The design of the "name" and "vect" functions is in sim/faults.hh
38
39namespace SparcISA
40{
41
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;

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

34
35#include "sim/faults.hh"
36
37// The design of the "name" and "vect" functions is in sim/faults.hh
38
39namespace SparcISA
40{
41
42typedef const uint32_t TrapType;
43typedef const uint32_t FaultPriority;
42typedef uint32_t TrapType;
43typedef uint32_t FaultPriority;
44
45class SparcFault : public FaultBase
46{
47 public:
48#if FULL_SYSTEM
49 void invoke(ThreadContext * tc);
50#endif
51 virtual TrapType trapType() = 0;

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

542 static FaultPriority _priority;
543 static FaultStat _count;
544 TrapType baseTrapType() {return _baseTrapType;}
545 public:
546 SpillNNormal(uint32_t n) : EnumeratedFault(n) {;}
547 FaultName name() {return _name;}
548 FaultPriority priority() {return _priority;}
549 FaultStat & countStat() {return _count;}
44
45class SparcFault : public FaultBase
46{
47 public:
48#if FULL_SYSTEM
49 void invoke(ThreadContext * tc);
50#endif
51 virtual TrapType trapType() = 0;

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

542 static FaultPriority _priority;
543 static FaultStat _count;
544 TrapType baseTrapType() {return _baseTrapType;}
545 public:
546 SpillNNormal(uint32_t n) : EnumeratedFault(n) {;}
547 FaultName name() {return _name;}
548 FaultPriority priority() {return _priority;}
549 FaultStat & countStat() {return _count;}
550 void invoke(ThreadContext * tc);
550};
551
552class SpillNOther : public EnumeratedFault
553{
554 private:
555 static FaultName _name;
556 static TrapType _baseTrapType;
557 static FaultPriority _priority;

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

572 static FaultPriority _priority;
573 static FaultStat _count;
574 TrapType baseTrapType() {return _baseTrapType;}
575 public:
576 FillNNormal(uint32_t n) : EnumeratedFault(n) {;}
577 FaultName name() {return _name;}
578 FaultPriority priority() {return _priority;}
579 FaultStat & countStat() {return _count;}
551};
552
553class SpillNOther : public EnumeratedFault
554{
555 private:
556 static FaultName _name;
557 static TrapType _baseTrapType;
558 static FaultPriority _priority;

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

573 static FaultPriority _priority;
574 static FaultStat _count;
575 TrapType baseTrapType() {return _baseTrapType;}
576 public:
577 FillNNormal(uint32_t n) : EnumeratedFault(n) {;}
578 FaultName name() {return _name;}
579 FaultPriority priority() {return _priority;}
580 FaultStat & countStat() {return _count;}
581 void invoke(ThreadContext * tc);
580};
581
582class FillNOther : public EnumeratedFault
583{
584 private:
585 static FaultName _name;
586 static TrapType _baseTrapType;
587 static FaultPriority _priority;

--- 33 unchanged lines hidden ---
582};
583
584class FillNOther : public EnumeratedFault
585{
586 private:
587 static FaultName _name;
588 static TrapType _baseTrapType;
589 static FaultPriority _priority;

--- 33 unchanged lines hidden ---