gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
RiscvISA::AtomicGenericOp< T > Class Template Reference

A generic atomic op class. More...

#include <amo.hh>

Inheritance diagram for RiscvISA::AtomicGenericOp< T >:
TypedAtomicOpFunctor< T > AtomicOpFunctor

Public Member Functions

 AtomicGenericOp (T _a, std::function< void(T *, T)> _op)
 
AtomicOpFunctorclone ()
 
void execute (T *b)
 
- Public Member Functions inherited from TypedAtomicOpFunctor< T >
void operator() (uint8_t *p)
 
- Public Member Functions inherited from AtomicOpFunctor
virtual ~AtomicOpFunctor ()
 

Private Attributes

a
 
std::function< void(T *, T)> op
 

Detailed Description

template<typename T>
class RiscvISA::AtomicGenericOp< T >

A generic atomic op class.

Definition at line 122 of file amo.hh.

Constructor & Destructor Documentation

◆ AtomicGenericOp()

template<typename T>
RiscvISA::AtomicGenericOp< T >::AtomicGenericOp ( _a,
std::function< void(T *, T)>  _op 
)
inline

Definition at line 125 of file amo.hh.

Member Function Documentation

◆ clone()

template<typename T>
AtomicOpFunctor* RiscvISA::AtomicGenericOp< T >::clone ( )
inlinevirtual

Implements TypedAtomicOpFunctor< T >.

Definition at line 127 of file amo.hh.

◆ execute()

template<typename T>
void RiscvISA::AtomicGenericOp< T >::execute ( T *  b)
inlinevirtual

Implements TypedAtomicOpFunctor< T >.

Definition at line 128 of file amo.hh.

References RiscvISA::a, and X86ISA::op.

Member Data Documentation

◆ a

template<typename T>
T RiscvISA::AtomicGenericOp< T >::a
private

Definition at line 130 of file amo.hh.

◆ op

template<typename T>
std::function<void(T*,T)> RiscvISA::AtomicGenericOp< T >::op
private

Definition at line 131 of file amo.hh.


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

Generated on Mon Jun 8 2020 15:45:59 for gem5 by doxygen 1.8.13