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;

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

599
600class TrapInstruction : public EnumeratedFault
601{
602 private:
603 static FaultName _name;
604 static TrapType _baseTrapType;
605 static FaultPriority _priority;
606 static FaultStat _count;
607 uint64_t syscall_num;
607 TrapType baseTrapType() {return _baseTrapType;}
608 public:
610 TrapInstruction(uint32_t n, uint64_t syscall) :
611 EnumeratedFault(n), syscall_num(syscall) {;}
609 TrapInstruction(int32_t n) : EnumeratedFault(n) {;}
610 FaultName name() {return _name;}
611 FaultPriority priority() {return _priority;}
612 FaultStat & countStat() {return _count;}
615#if !FULL_SYSTEM
616 void invoke(ThreadContext * tc);
617#endif
613};
614
615
616} // SparcISA namespace
617
618#endif // __FAULTS_HH__