packet.hh (3665:307a21253be8) | packet.hh (3940:b87f85bb4275) |
---|---|
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 | 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" |
|
44#include "mem/request.hh" 45#include "sim/host.hh" 46#include "sim/root.hh" 47 | 45#include "mem/request.hh" 46#include "sim/host.hh" 47#include "sim/root.hh" 48 |
49 |
|
48struct Packet; 49typedef Packet *PacketPtr; 50typedef uint8_t* PacketDataPtr; 51typedef std::list<PacketPtr> PacketList; 52 53//Coherence Flags 54#define NACKED_LINE (1 << 0) 55#define SATISFIED (1 << 1) --- 177 unchanged lines hidden (view full) --- 233 bool needsResponse() const { return (cmd & NeedsResponse) != 0; } 234 bool isInvalidate() const { return (cmd & IsInvalidate) != 0; } 235 bool hasData() const { return (cmd & HasData) != 0; } 236 237 bool isCacheFill() const { return (flags & CACHE_LINE_FILL) != 0; } 238 bool isNoAllocate() const { return (flags & NO_ALLOCATE) != 0; } 239 bool isCompressed() const { return (flags & COMPRESSED) != 0; } 240 | 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 |
241 bool nic_pkt() { assert("Unimplemented\n" && 0); return false; } | 243 bool nic_pkt() { panic("Unimplemented"); M5_DUMMY_RETURN } |
242 243 /** Possible results of a packet's request. */ 244 enum Result 245 { 246 Success, 247 BadAddress, 248 Nacked, 249 Unknown --- 224 unchanged lines hidden --- | 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 --- |