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 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;} |
550 void invoke(ThreadContext * tc); |
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); |
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 --- |