gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::CacheBlk::Lock Class Reference

Represents that the indicated thread context has a "lock" on the block, in the LL/SC sense. More...

#include <cache_blk.hh>

Public Member Functions

bool matches (const RequestPtr &req) const
 
bool intersects (const RequestPtr &req) const
 
 Lock (const RequestPtr &req)
 

Public Attributes

ContextID contextId
 
Addr lowAddr
 
Addr highAddr
 

Detailed Description

Represents that the indicated thread context has a "lock" on the block, in the LL/SC sense.

Definition at line 116 of file cache_blk.hh.

Constructor & Destructor Documentation

◆ Lock()

gem5::CacheBlk::Lock::Lock ( const RequestPtr req)
inline

Definition at line 142 of file cache_blk.hh.

Member Function Documentation

◆ intersects()

bool gem5::CacheBlk::Lock::intersects ( const RequestPtr req) const
inline

Definition at line 134 of file cache_blk.hh.

References highAddr, and lowAddr.

◆ matches()

bool gem5::CacheBlk::Lock::matches ( const RequestPtr req) const
inline

Definition at line 125 of file cache_blk.hh.

References contextId, highAddr, and lowAddr.

Member Data Documentation

◆ contextId

ContextID gem5::CacheBlk::Lock::contextId

Definition at line 119 of file cache_blk.hh.

Referenced by matches().

◆ highAddr

Addr gem5::CacheBlk::Lock::highAddr

Definition at line 121 of file cache_blk.hh.

Referenced by intersects(), and matches().

◆ lowAddr

Addr gem5::CacheBlk::Lock::lowAddr

Definition at line 120 of file cache_blk.hh.

Referenced by intersects(), and matches().


The documentation for this class was generated from the following file:

Generated on Tue Sep 21 2021 12:27:22 for gem5 by doxygen 1.8.17