SST 12.1.0
Structural Simulation Toolkit
SST::Interfaces::StandardMem::ReadLock Class Reference

Locked atomic update -> guaranteed success A ReadLock must be followed by a WriteUnlock. More...

#include <stdMem.h>

Inheritance diagram for SST::Interfaces::StandardMem::ReadLock:
SST::Interfaces::StandardMem::Request

Public Member Functions

 ReadLock (Addr physAddr, uint64_t size, flags_t flags=0, Addr virtAddr=0, Addr instPtr=0, uint32_t tid=0)
 
RequestmakeResponse () override
 
bool needsResponse () override
 
SST::Eventconvert (RequestConverter *converter) override
 
void handle (RequestHandler *handler) override
 
std::string getString () override
 
- Public Member Functions inherited from SST::Interfaces::StandardMem::Request
 Request (flags_t fl=0)
 
 Request (id_t rid, flags_t flags=0)
 
id_t getID ()
 
virtual RequestmakeResponse ()=0
 
virtual bool needsResponse ()=0
 
virtual SST::Eventconvert (RequestConverter *converter)=0
 
virtual void handle (RequestHandler *handler)=0
 
virtual std::string getString ()=0
 
void setNoncacheable ()
 
void unsetNoncacheable ()
 
bool getNoncacheable ()
 
void setSuccess ()
 
void unsetSuccess ()
 
bool getSuccess ()
 
bool getFail ()
 
void setFail ()
 
void unsetFail ()
 
void setTrace ()
 
void unsetTrace ()
 
bool getTrace ()
 
void setFlag (flags_t flag)
 
void setFlag (Flag flag)
 
void unsetFlag (flags_t flag)
 
void unsetFlag (Flag flag)
 
bool getFlag (flags_t flag)
 
bool getFlag (Flag flag)
 
void clearAllFlags ()
 
flags_t getAllFlags ()
 
std::string getFlagString ()
 

Data Fields

Addr pAddr
 
Addr vAddr
 
uint64_t size
 
Addr iPtr
 
uint32_t tid
 

Additional Inherited Members

- Public Types inherited from SST::Interfaces::StandardMem::Request
enum class  Flag { F_NONCACHEABLE = 1 << 1 , F_FAIL = 1 << 2 , F_TRACE = 1 << 3 , F_RESERVED = 1 << 16 }
 Flags that modify requests. More...
 
typedef uint64_t id_t
 
typedef uint32_t flags_t
 
- Protected Attributes inherited from SST::Interfaces::StandardMem::Request
id_t id
 
flags_t flags
 

Detailed Description

Locked atomic update -> guaranteed success A ReadLock must be followed by a WriteUnlock.

ReadLock acquires and locks an address Returns a ReadResp with the current data value

Member Function Documentation

◆ convert()

SST::Event * SST::Interfaces::StandardMem::ReadLock::convert ( RequestConverter converter)
inlineoverridevirtual

◆ getString()

std::string SST::Interfaces::StandardMem::ReadLock::getString ( )
inlineoverridevirtual

◆ handle()

void SST::Interfaces::StandardMem::ReadLock::handle ( RequestHandler handler)
inlineoverridevirtual

◆ makeResponse()

Request * SST::Interfaces::StandardMem::ReadLock::makeResponse ( )
inlineoverridevirtual

◆ needsResponse()

bool SST::Interfaces::StandardMem::ReadLock::needsResponse ( )
inlineoverridevirtual

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