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; --- 27 unchanged lines hidden (view full) --- 36 */ 37 38#ifndef __MEM_PACKET_HH__ 39#define __MEM_PACKET_HH__ 40 41#include <cassert> 42#include <list> 43 |
44#include "base/misc.hh" |
45#include "mem/request.hh" 46#include "sim/host.hh" 47#include "sim/root.hh" 48 |
49 |
50struct Packet; 51typedef Packet *PacketPtr; 52typedef uint8_t* PacketDataPtr; 53typedef std::list<PacketPtr> PacketList; 54 55//Coherence Flags 56#define NACKED_LINE (1 << 0) 57#define SATISFIED (1 << 1) --- 177 unchanged lines hidden (view full) --- 235 bool needsResponse() const { return (cmd & NeedsResponse) != 0; } 236 bool isInvalidate() const { return (cmd & IsInvalidate) != 0; } 237 bool hasData() const { return (cmd & HasData) != 0; } 238 239 bool isCacheFill() const { return (flags & CACHE_LINE_FILL) != 0; } 240 bool isNoAllocate() const { return (flags & NO_ALLOCATE) != 0; } 241 bool isCompressed() const { return (flags & COMPRESSED) != 0; } 242 |
243 bool nic_pkt() { panic("Unimplemented"); M5_DUMMY_RETURN } |
244 245 /** Possible results of a packet's request. */ 246 enum Result 247 { 248 Success, 249 BadAddress, 250 Nacked, 251 Unknown --- 224 unchanged lines hidden --- |