types.hh (9500:9c3e3d1c7a87) types.hh (10276:4cbfdcdb2144)
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;

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

37#ifndef __BASE_TYPES_HH__
38#define __BASE_TYPES_HH__
39
40#include <inttypes.h>
41
42#include <cassert>
43#include <ostream>
44
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;

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

37#ifndef __BASE_TYPES_HH__
38#define __BASE_TYPES_HH__
39
40#include <inttypes.h>
41
42#include <cassert>
43#include <ostream>
44
45#include "base/refcnt.hh"
46
45/** uint64_t constant */
46#define ULL(N) ((uint64_t)N##ULL)
47/** int64_t constant */
48#define LL(N) ((int64_t)N##LL)
49
50/** Statistics counter type. Not much excuse for not using a 64-bit
51 * integer here, but if you're desperate and only run short
52 * simulations you could make this 32 bits.

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

172
173/**
174 * Port index/ID type, and a symbolic name for an invalid port id.
175 */
176typedef int16_t PortID;
177const PortID InvalidPortID = (PortID)-1;
178
179class FaultBase;
47/** uint64_t constant */
48#define ULL(N) ((uint64_t)N##ULL)
49/** int64_t constant */
50#define LL(N) ((int64_t)N##LL)
51
52/** Statistics counter type. Not much excuse for not using a 64-bit
53 * integer here, but if you're desperate and only run short
54 * simulations you could make this 32 bits.

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

174
175/**
176 * Port index/ID type, and a symbolic name for an invalid port id.
177 */
178typedef int16_t PortID;
179const PortID InvalidPortID = (PortID)-1;
180
181class FaultBase;
180template <class T> class RefCountingPtr;
181typedef RefCountingPtr<FaultBase> Fault;
182
183#endif // __BASE_TYPES_HH__
182typedef RefCountingPtr<FaultBase> Fault;
183
184#endif // __BASE_TYPES_HH__