Deleted Added
sdiff udiff text old ( 8874:9e2a4cf89be6 ) new ( 8914:8c3bd7bea667 )
full compact
1/*
2 * Copyright (c) 2009 Advanced Micro Devices, Inc.
3 * Copyright (c) 2011 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

41#include "params/RubyPort.hh"
42
43class MessageBuffer;
44class AbstractController;
45
46class RubyPort : public MemObject
47{
48 public:
49 class M5Port : public SimpleTimingPort
50 {
51 private:
52 RubyPort *ruby_port;
53 RubySystem* ruby_system;
54 bool _onRetryList;
55 bool access_phys_mem;
56
57 public:
58 M5Port(const std::string &_name, RubyPort *_port,
59 RubySystem*_system, bool _access_phys_mem);

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

76 private:
77 bool isPhysMemAddress(Addr addr);
78 bool doFunctionalRead(PacketPtr pkt);
79 bool doFunctionalWrite(PacketPtr pkt);
80 };
81
82 friend class M5Port;
83
84 class PioPort : public SimpleTimingPort
85 {
86 private:
87 RubyPort *ruby_port;
88
89 public:
90 PioPort(const std::string &_name, RubyPort *_port);
91 bool sendNextCycle(PacketPtr pkt);
92
93 protected:
94 virtual bool recvTiming(PacketPtr pkt);
95 virtual Tick recvAtomic(PacketPtr pkt);
96 };
97
98 friend class PioPort;
99
100 struct SenderState : public Packet::SenderState
101 {
102 M5Port* port;
103 Packet::SenderState *saved;

--- 76 unchanged lines hidden ---