Revision e1ff4bc1 greenreg/include/greenreg/greenreg_socket/gr_gsgpsocket.h

b/greenreg/include/greenreg/greenreg_socket/gr_gsgpsocket.h
175 175

  
176 176
        // re-creates byte enables.  Assumes addresses are correctly aligned
177 177
        unsigned int length = _transaction->getMBurstLength();
178
        unsigned int mask; 
178
        unsigned int mask;
179 179
        switch(length) {
180 180
          case 1:
181 181
            mask = 0x1;
......
191 191
            mask = 0xF;
192 192
        }
193 193

  
194
        m_registers->bus_read( m_bus_read_data, address, mask, &_transaction, m_delay_enabled);      
195
        gs::MData mdata(gs::GSDataType::dtype((unsigned char *)&m_bus_read_data,_transaction->getMBurstLength()));  
194
        m_registers->bus_read(m_bus_read_data, address, mask, &_transaction,
195
                              m_delay_enabled);
196
        gs::GSDataType::dtype tmp((unsigned char *)(&m_bus_read_data),
197
                                  _transaction->getMBurstLength());
198
        gs::MData mdata(tmp);
196 199
        _transaction->setSData(mdata);
197

  
198 200
      } else if( _transaction->getMCmd() == gs::Generic_MCMD_WR) {
199 201
        unsigned int data;
200 202
        unsigned int address = static_cast<unsigned int>(_transaction->getMAddr()) - m_base;        

Also available in: Unified diff