Changeset 7 for trunk


Ignore:
Timestamp:
Mar 30, 2010, 1:08:09 PM (15 years ago)
Author:
guthmull
Message:

Fix same deadlock issue as in V4

File:
1 edited

Legend:

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

    r2 r7  
    13051305          r_write_to_dec        = false;
    13061306
    1307           r_write_fsm = WRITE_UPT_LOCK;
     1307          if( !r_write_to_init_cmd_multi_req.read() &&
     1308              !r_write_to_init_cmd_brdcast_req.read()  )
     1309            r_write_fsm = WRITE_UPT_LOCK;
     1310          else
     1311            r_write_fsm = WRITE_WAIT;
    13081312          break;
    13091313        }
     
    28422846         
    28432847          if(r_llsc_count.read()) {  // Shared line
    2844             r_llsc_fsm = SC_UPT_LOCK;
     2848              if( !r_llsc_to_init_cmd_multi_req.read() &&
     2849                  !r_llsc_to_init_cmd_brdcast_req.read()  )
     2850                  r_llsc_fsm = SC_UPT_LOCK;
     2851              else
     2852                  r_llsc_fsm = SC_WAIT;
    28452853          } else {
    28462854            r_llsc_fsm = SC_RSP_TRUE;
Note: See TracChangeset for help on using the changeset viewer.