packet.hh (2989:9a6f66c38acc) packet.hh (3013:a173458c7f4d)
1/*
2 * Copyright (c) 2006 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
38#ifndef __MEM_PACKET_HH__
39#define __MEM_PACKET_HH__
40
41#include "mem/request.hh"
42#include "sim/host.hh"
43#include "sim/root.hh"
44#include <list>
1/*
2 * Copyright (c) 2006 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
38#ifndef __MEM_PACKET_HH__
39#define __MEM_PACKET_HH__
40
41#include "mem/request.hh"
42#include "sim/host.hh"
43#include "sim/root.hh"
44#include <list>
45#include <cassert>
46
47struct Packet;
48typedef Packet* PacketPtr;
49typedef uint8_t* PacketDataPtr;
50typedef std::list<PacketPtr> PacketList;
51
52//Coherence Flags
53#define NACKED_LINE 1 << 0

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

212 /** The command field of the packet. */
213 Command cmd;
214
215 bool isRead() { return (cmd & IsRead) != 0; }
216 bool isWrite() { return (cmd & IsWrite) != 0; }
217 bool isRequest() { return (cmd & IsRequest) != 0; }
218 bool isResponse() { return (cmd & IsResponse) != 0; }
219 bool needsResponse() { return (cmd & NeedsResponse) != 0; }
45
46struct Packet;
47typedef Packet* PacketPtr;
48typedef uint8_t* PacketDataPtr;
49typedef std::list<PacketPtr> PacketList;
50
51//Coherence Flags
52#define NACKED_LINE 1 << 0

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

211 /** The command field of the packet. */
212 Command cmd;
213
214 bool isRead() { return (cmd & IsRead) != 0; }
215 bool isWrite() { return (cmd & IsWrite) != 0; }
216 bool isRequest() { return (cmd & IsRequest) != 0; }
217 bool isResponse() { return (cmd & IsResponse) != 0; }
218 bool needsResponse() { return (cmd & NeedsResponse) != 0; }
220 bool isInvalidate() { return (cmd * IsInvalidate) != 0; }
219 bool isInvalidate() { return (cmd & IsInvalidate) != 0; }
221
222 bool isCacheFill() { return (flags & CACHE_LINE_FILL) != 0; }
223 bool isNoAllocate() { return (flags & NO_ALLOCATE) != 0; }
224 bool isCompressed() { return (flags & COMPRESSED) != 0; }
225
226 bool nic_pkt() { assert("Unimplemented\n" && 0); }
227
228 /** Possible results of a packet's request. */

--- 143 unchanged lines hidden ---
220
221 bool isCacheFill() { return (flags & CACHE_LINE_FILL) != 0; }
222 bool isNoAllocate() { return (flags & NO_ALLOCATE) != 0; }
223 bool isCompressed() { return (flags & COMPRESSED) != 0; }
224
225 bool nic_pkt() { assert("Unimplemented\n" && 0); }
226
227 /** Possible results of a packet's request. */

--- 143 unchanged lines hidden ---