Ignore:
Timestamp:
Dec 3, 2013, 5:10:05 PM (11 years ago)
Author:
alain
Message:

Bug fix in the M_WRITE_BLOCK state, detected by C.Devigne.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_block_device_tsar/caba/source/src/vci_block_device_tsar.cpp

    r580 r581  
    506506        {
    507507            r_latency_count = m_latency;
    508             ::lseek(m_fd, (r_lba + r_block_count)*m_words_per_block*vci_param::B, SEEK_SET);
    509             if( ::write(m_fd, r_local_buffer, m_words_per_block*vci_param::B) < 0 )
     508            ::lseek(m_fd, (r_lba + r_block_count)*m_words_per_block*4, SEEK_SET);
     509            if( ::write(m_fd, r_local_buffer, m_words_per_block*4) < 0 )
    510510            {
    511511                r_initiator_fsm = M_WRITE_ERROR;
Note: See TracChangeset for help on using the changeset viewer.