request.hh (8832:247fee427324) request.hh (8833:2870638642bd)
1/*
2 * Copyright (c) 2002-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;

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

35 * Declaration of a request, the overall memory request consisting of
36 the parts of the request that are persistent throughout the transaction.
37 */
38
39#ifndef __MEM_REQUEST_HH__
40#define __MEM_REQUEST_HH__
41
42#include <cassert>
1/*
2 * Copyright (c) 2002-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;

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

35 * Declaration of a request, the overall memory request consisting of
36 the parts of the request that are persistent throughout the transaction.
37 */
38
39#ifndef __MEM_REQUEST_HH__
40#define __MEM_REQUEST_HH__
41
42#include <cassert>
43#include <climits>
43
44#include "base/fast_alloc.hh"
45#include "base/flags.hh"
46#include "base/misc.hh"
47#include "base/types.hh"
48#include "sim/core.hh"
49
50class Request;

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

106 /** This request id is used for writeback requests by the caches */
107 static const MasterID wbMasterId = 0;
108 /** This request id is used for functional requests that don't come from a
109 * particular device
110 */
111 static const MasterID funcMasterId = 1;
112 /** This request id is used for message signaled interrupts */
113 static const MasterID intMasterId = 2;
44
45#include "base/fast_alloc.hh"
46#include "base/flags.hh"
47#include "base/misc.hh"
48#include "base/types.hh"
49#include "sim/core.hh"
50
51class Request;

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

107 /** This request id is used for writeback requests by the caches */
108 static const MasterID wbMasterId = 0;
109 /** This request id is used for functional requests that don't come from a
110 * particular device
111 */
112 static const MasterID funcMasterId = 1;
113 /** This request id is used for message signaled interrupts */
114 static const MasterID intMasterId = 2;
115 /** Invalid request id for assertion checking only. It is invalid behavior
116 * to ever send this id as part of a request.
117 * @todo C++1x replace with numeric_limits when constexpr is added */
118 static const MasterID invldMasterId = USHRT_MAX;
114 /** @} */
115
116 private:
117 typedef uint8_t PrivateFlagsType;
118 typedef ::Flags<PrivateFlagsType> PrivateFlags;
119
120 /** Whether or not the size is valid. */
121 static const PrivateFlagsType VALID_SIZE = 0x00000001;

--- 372 unchanged lines hidden ---
119 /** @} */
120
121 private:
122 typedef uint8_t PrivateFlagsType;
123 typedef ::Flags<PrivateFlagsType> PrivateFlags;
124
125 /** Whether or not the size is valid. */
126 static const PrivateFlagsType VALID_SIZE = 0x00000001;

--- 372 unchanged lines hidden ---