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 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; } |
219 bool isInvalidate() { return (cmd & IsInvalidate) != 0; } |
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 --- |