Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/generic_llsc_global_table/include/generic_llsc_global_table.h
r382 r482 432 432 433 433 //////////////////////////////////////////////////////////////////////////// 434 /* 434 435 inline void sw(const addr_t ad) 435 436 // This method checks if there is a valid registration for the given … … 448 449 // If there is one, invalidate it 449 450 if(pos >= 0) r_val[pos] = false; 450 451 } 452 */ 453 inline void sw(const addr_t nline, unsigned int min, unsigned int max) 454 // This method checks if there is / are valid registration(s) for the given 455 // range and, in case of hit(s), invalidates the registration(s) 456 { 457 // increment the sw access counter (for stats) 458 m_cpt_sw++; 459 // hit range ? 460 // YES 461 // inval registration(s) 462 // NO 463 // nothing 464 465 // for every address in the given range ... 466 for (unsigned int i = min; i <= max; i++) 467 { 468 // Is there a registration for the given address ? 469 int pos = hitAddr(nline + i * 4); 470 // If there is one, invalidate it 471 if (pos >= 0) 472 { 473 r_val[pos] = false; 474 } 475 } 451 476 } 452 477 -
trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r481 r482 2590 2590 // erase any possible new reservation when we release the lock on the 2591 2591 // directory 2592 m_llsc_table.sw( r_write_address.read());2592 m_llsc_table.sw(m_nline[(addr_t)r_write_address.read()],r_write_word_index.read(),r_write_word_index.read()+r_write_word_count.read()); 2593 2593 2594 2594 r_write_fsm = WRITE_DIR_LOCK; … … 5283 5283 { 5284 5284 // The CAS is a success => sw access to the llsc_global_table 5285 m_llsc_table.sw(m_ cmd_cas_addr_fifo.read());5285 m_llsc_table.sw(m_nline[(addr_t)m_cmd_cas_addr_fifo.read()],m_x[(addr_t)(m_cmd_cas_addr_fifo.read())],m_x[(addr_t)(m_cmd_cas_addr_fifo.read())]); 5286 5286 5287 5287 // test coherence request -
trunk/platforms/tsar_generic_xbar/soclib.conf
r480 r482 1 #config.addDescPath("/dsk/l1/misc/joannou/tsar/trunk") 2 config.addDescPath("/users/cao/joannou/tsar") 3 config.addDescPath("/users/cao/joannou/soclib/soclib") 1 4 2 config.addDescPath("/Users/alain/soc/tsar-trunk-svn-2013/") 5 config.systemcass.cflags=config.systemc.cflags+["-fopenmp", "-fpermissive"] 6 config.systemcass.libs=config.systemc.libs+['-ldl', '-lm', '-lpthread', '-L%(libdir)s', '-lsystemc', '-rdynamic', '-fopenmp'] 7 #config.default = config.systemcass_ 8 # 9 config.systemc.cflags=config.systemc.cflags+["-fopenmp", "-fpermissive"] 10 config.systemc.libs=config.systemc.libs+['-ldl', '-lm', '-lpthread', '-L%(libdir)s', '-lsystemc', '-rdynamic', '-fopenmp'] 11 config.default = config.systemc_
Note: See TracChangeset
for help on using the changeset viewer.