faults.hh (5004:7d94cedab264) | faults.hh (5999:3cf8e71257e0) |
---|---|
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; --- 27 unchanged lines hidden (view full) --- 36#include "sim/stats.hh" 37#include "config/full_system.hh" 38 39class ThreadContext; 40class FaultBase; 41typedef RefCountingPtr<FaultBase> Fault; 42 43typedef const char * FaultName; | 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; --- 27 unchanged lines hidden (view full) --- 36#include "sim/stats.hh" 37#include "config/full_system.hh" 38 39class ThreadContext; 40class FaultBase; 41typedef RefCountingPtr<FaultBase> Fault; 42 43typedef const char * FaultName; |
44typedef Stats::Scalar<> FaultStat; | 44typedef Stats::Scalar FaultStat; |
45 46// Each class has it's name statically define in _name, 47// and has a virtual function to access it's name. 48// The function is necessary because otherwise, all objects 49// which are being accessed cast as a FaultBase * (namely 50// all faults returned using the Fault type) will use the 51// generic FaultBase name. 52 --- 49 unchanged lines hidden --- | 45 46// Each class has it's name statically define in _name, 47// and has a virtual function to access it's name. 48// The function is necessary because otherwise, all objects 49// which are being accessed cast as a FaultBase * (namely 50// all faults returned using the Fault type) will use the 51// generic FaultBase name. 52 --- 49 unchanged lines hidden --- |