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#include "mem/ruby/common/WriteMask.hh" |
44 45class RubyRequest : public Message 46{ 47 public: 48 Addr m_PhysicalAddress; 49 Addr m_LineAddress; 50 RubyRequestType m_Type; 51 Addr m_ProgramCounter; 52 RubyAccessMode m_AccessMode; 53 int m_Size; 54 PrefetchBit m_Prefetch; 55 uint8_t* data; 56 PacketPtr pkt; 57 ContextID m_contextId; |
58 WriteMask m_writeMask; 59 DataBlock m_WTData; |
60 int m_wfid; 61 HSAScope m_scope; 62 HSASegment m_segment; 63 64 65 RubyRequest(Tick curTime, uint64_t _paddr, uint8_t* _data, int _len, 66 uint64_t _pc, RubyRequestType _type, RubyAccessMode _access_mode, 67 PacketPtr _pkt, PrefetchBit _pb = PrefetchBit_No, --- 29 unchanged lines hidden (view full) --- 97 m_Type(_type), 98 m_ProgramCounter(_pc), 99 m_AccessMode(_access_mode), 100 m_Size(_len), 101 m_Prefetch(_pb), 102 data(_data), 103 pkt(_pkt), 104 m_contextId(_core_id), |
105 m_writeMask(_wm_size,_wm_mask), 106 m_WTData(_Data), |
107 m_wfid(_proc_id), 108 m_scope(_scope), 109 m_segment(_segment) 110 { 111 m_LineAddress = makeLineAddress(m_PhysicalAddress); 112 } 113 114 RubyRequest(Tick curTime, uint64_t _paddr, uint8_t* _data, int _len, --- 10 unchanged lines hidden (view full) --- 125 m_Type(_type), 126 m_ProgramCounter(_pc), 127 m_AccessMode(_access_mode), 128 m_Size(_len), 129 m_Prefetch(_pb), 130 data(_data), 131 pkt(_pkt), 132 m_contextId(_core_id), |
133 m_writeMask(_wm_size,_wm_mask,_atomicOps), 134 m_WTData(_Data), |
135 m_wfid(_proc_id), 136 m_scope(_scope), 137 m_segment(_segment) 138 { 139 m_LineAddress = makeLineAddress(m_PhysicalAddress); 140 } 141 142 --- 26 unchanged lines hidden --- |