Changeset 650


Ignore:
Timestamp:
Mar 3, 2014, 11:13:45 AM (10 years ago)
Author:
cfuguet
Message:

Adding conditional compilation of the reservation life span
mechanism in the LL/SC table. As RTL component doesn't have
this mechanism when cosimulating the desactivation is
necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/generic_llsc_global_table/include/generic_llsc_global_table.h

    r527 r650  
    3434#include <iomanip>
    3535#include <stdint.h>
     36
     37#define RESERVATION_LIFE_SPAN 1
    3638
    3739namespace soclib
     
    348350        if (pos >= 0)
    349351        {
     352#if RESERVATION_LIFE_SPAN == 0
     353            return r_key[pos];
     354#else
    350355            uint32_t absdiff = ( r_key[pos] > r_next_key) ?
    351356                                 r_key[pos] - r_next_key  :
     
    359364
    360365            return r_key[pos];
     366#endif
    361367        }
    362368
Note: See TracChangeset for help on using the changeset viewer.