intdev.hh (8229:78bf55f23338) intdev.hh (8711:c7e14f52c682)
1/*
2 * Copyright (c) 2008 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;

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

58 Addr intAddr;
59 public:
60 IntPort(const std::string &_name, MemObject * _parent,
61 IntDev *dev, Tick _latency) :
62 MessagePort(_name, _parent), device(dev), latency(_latency)
63 {
64 }
65
1/*
2 * Copyright (c) 2008 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;

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

58 Addr intAddr;
59 public:
60 IntPort(const std::string &_name, MemObject * _parent,
61 IntDev *dev, Tick _latency) :
62 MessagePort(_name, _parent), device(dev), latency(_latency)
63 {
64 }
65
66 void getDeviceAddressRanges(AddrRangeList &resp, bool &snoop)
66 AddrRangeList getAddrRanges()
67 {
67 {
68 snoop = false;
69 device->getIntAddrRange(resp);
68 return device->getIntAddrRange();
70 }
71
72 Tick recvMessage(PacketPtr pkt)
73 {
74 return device->recvMessage(pkt);
75 }
76
77 Tick recvResponse(PacketPtr pkt)

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

129 }
130
131 virtual Tick
132 recvResponse(PacketPtr pkt)
133 {
134 return 0;
135 }
136
69 }
70
71 Tick recvMessage(PacketPtr pkt)
72 {
73 return device->recvMessage(pkt);
74 }
75
76 Tick recvResponse(PacketPtr pkt)

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

128 }
129
130 virtual Tick
131 recvResponse(PacketPtr pkt)
132 {
133 return 0;
134 }
135
137 virtual void
138 getIntAddrRange(AddrRangeList &range_list)
136 virtual AddrRangeList
137 getIntAddrRange()
139 {
140 panic("intAddrRange not implemented.\n");
141 }
142};
143
144class IntSinkPin : public SimObject
145{
146 public:

--- 84 unchanged lines hidden ---
138 {
139 panic("intAddrRange not implemented.\n");
140 }
141};
142
143class IntSinkPin : public SimObject
144{
145 public:

--- 84 unchanged lines hidden ---