Deleted Added
sdiff udiff text old ( 11305:78c1e4f5dfc5 ) new ( 11307:bd7d06ea90f5 )
full compact
1/*
2 * Copyright (c) 2009 Mark D. Hill and David A. Wood
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;

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

35#include "mem/protocol/HSAScope.hh"
36#include "mem/protocol/HSASegment.hh"
37#include "mem/protocol/Message.hh"
38#include "mem/protocol/PrefetchBit.hh"
39#include "mem/protocol/RubyAccessMode.hh"
40#include "mem/protocol/RubyRequestType.hh"
41#include "mem/ruby/common/Address.hh"
42#include "mem/ruby/common/DataBlock.hh"
43
44class RubyRequest : public Message
45{
46 public:
47 Addr m_PhysicalAddress;
48 Addr m_LineAddress;
49 RubyRequestType m_Type;
50 Addr m_ProgramCounter;
51 RubyAccessMode m_AccessMode;
52 int m_Size;
53 PrefetchBit m_Prefetch;
54 uint8_t* data;
55 PacketPtr pkt;
56 ContextID m_contextId;
57 int m_wfid;
58 HSAScope m_scope;
59 HSASegment m_segment;
60
61
62 RubyRequest(Tick curTime, uint64_t _paddr, uint8_t* _data, int _len,
63 uint64_t _pc, RubyRequestType _type, RubyAccessMode _access_mode,
64 PacketPtr _pkt, PrefetchBit _pb = PrefetchBit_No,

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

94 m_Type(_type),
95 m_ProgramCounter(_pc),
96 m_AccessMode(_access_mode),
97 m_Size(_len),
98 m_Prefetch(_pb),
99 data(_data),
100 pkt(_pkt),
101 m_contextId(_core_id),
102 m_wfid(_proc_id),
103 m_scope(_scope),
104 m_segment(_segment)
105 {
106 m_LineAddress = makeLineAddress(m_PhysicalAddress);
107 }
108
109 RubyRequest(Tick curTime, uint64_t _paddr, uint8_t* _data, int _len,

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

120 m_Type(_type),
121 m_ProgramCounter(_pc),
122 m_AccessMode(_access_mode),
123 m_Size(_len),
124 m_Prefetch(_pb),
125 data(_data),
126 pkt(_pkt),
127 m_contextId(_core_id),
128 m_wfid(_proc_id),
129 m_scope(_scope),
130 m_segment(_segment)
131 {
132 m_LineAddress = makeLineAddress(m_PhysicalAddress);
133 }
134
135

--- 26 unchanged lines hidden ---