faults.hh (2665:a124942bacb8) faults.hh (2680:246e7104f744)
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;

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

41
42typedef const uint32_t TrapType;
43typedef const uint32_t FaultPriority;
44
45class SparcFault : public FaultBase
46{
47 public:
48#if FULL_SYSTEM
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;

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

41
42typedef const uint32_t TrapType;
43typedef const uint32_t FaultPriority;
44
45class SparcFault : public FaultBase
46{
47 public:
48#if FULL_SYSTEM
49 void invoke(ExecContext * xc);
49 void invoke(ThreadContext * tc);
50#endif
51 virtual TrapType trapType() = 0;
52 virtual FaultPriority priority() = 0;
53 virtual FaultStat & countStat() = 0;
54};
55
56class InternalProcessorError : public SparcFault
57{

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

580 TrapType baseTrapType() {return _baseTrapType;}
581 public:
582 TrapInstruction(uint32_t n, uint64_t syscall) :
583 EnumeratedFault(n), syscall_num(syscall) {;}
584 FaultName name() {return _name;}
585 FaultPriority priority() {return _priority;}
586 FaultStat & countStat() {return _count;}
587#if !FULL_SYSTEM
50#endif
51 virtual TrapType trapType() = 0;
52 virtual FaultPriority priority() = 0;
53 virtual FaultStat & countStat() = 0;
54};
55
56class InternalProcessorError : public SparcFault
57{

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

580 TrapType baseTrapType() {return _baseTrapType;}
581 public:
582 TrapInstruction(uint32_t n, uint64_t syscall) :
583 EnumeratedFault(n), syscall_num(syscall) {;}
584 FaultName name() {return _name;}
585 FaultPriority priority() {return _priority;}
586 FaultStat & countStat() {return _count;}
587#if !FULL_SYSTEM
588 void invoke(ExecContext * xc);
588 void invoke(ThreadContext * tc);
589#endif
590};
591
592} // SparcISA namespace
593
594#endif // __FAULTS_HH__
589#endif
590};
591
592} // SparcISA namespace
593
594#endif // __FAULTS_HH__