In a processor, a method for using a semaphore with out of order loads in a memory consistency model that constitutes loads reading from memory in order. The method includes implementing a memory resource that can be accessed by a plurality of cores; implementing an access mask that functions by tracking which words of a cache line have pending loads, wherein the cache line includes the memory resource, wherein an out of order load sets a mask bit within the access mask when accessing a word of the cache line, and clears the mask bit when that out of order load retires. The method further includes checking the access mask upon execution of subsequent stores from the plurality of cores to the cache line; and causing a miss prediction when a subsequent store to the portion of the cache line sees a prior mark from a load in the access mask, wherein the subsequent store will signal a load queue entry corresponding to that load by using a tracker register.
展开▼
机译:在处理器中,在存储器一致性模型中,在内存一致性模型中使用信号量的方法,其构成从存储器读取的负载。该方法包括实现可以由多个核心访问的存储器资源;实现通过跟踪高速缓存行的哪个单词具有待处理加载的访问掩码,其中高速缓存行包括存储器资源,其中,在访问缓存行的单词时,OUT OUT OUT RANCE在访问掩码中设置屏蔽位,当订单负载退休时,清除掩模位。该方法还包括在从多个核的后续存储到高速缓存行时检查访问掩码;当从访问掩码中的负载看到后续存储到高速缓存行的后续存储器时,导致错过预测,其中后续存储将通过使用跟踪器寄存器向与该负载相对应的加载队列条目。
展开▼