gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
BackingStore Class Reference

Public Member Functions

 BackingStore (Addr _base, size_t _size)
 
void rangeCheck (Addr addr, Addr size)
 
::testing::AssertionResult expect_access (size_t idx, const Access &other) const
 
::testing::AssertionResult expect_accesses (Accesses expected) const
 
void writeBlob (Addr ptr, const void *data, int size)
 
void readBlob (Addr ptr, void *data, int size)
 

Public Attributes

std::vector< uint8_t > store
 
Addr base
 
Accesses accesses
 

Detailed Description

Definition at line 61 of file proxy_ptr.test.cc.

Constructor & Destructor Documentation

◆ BackingStore()

BackingStore::BackingStore ( Addr  _base,
size_t  _size 
)
inline

Definition at line 67 of file proxy_ptr.test.cc.

Member Function Documentation

◆ expect_access()

::testing::AssertionResult BackingStore::expect_access ( size_t  idx,
const Access other 
) const
inline

Definition at line 80 of file proxy_ptr.test.cc.

References accesses.

Referenced by expect_accesses().

◆ expect_accesses()

::testing::AssertionResult BackingStore::expect_accesses ( Accesses  expected) const
inline

Definition at line 95 of file proxy_ptr.test.cc.

References accesses, expect_access(), and expected.

Referenced by accessed().

◆ rangeCheck()

void BackingStore::rangeCheck ( Addr  addr,
Addr  size 
)
inline

Definition at line 70 of file proxy_ptr.test.cc.

References addr, base, panic_if, and store.

Referenced by readBlob(), and writeBlob().

◆ readBlob()

void BackingStore::readBlob ( Addr  ptr,
void *  data,
int  size 
)
inline

Definition at line 130 of file proxy_ptr.test.cc.

References accesses, base, data, rangeCheck(), and store.

Referenced by TestProxy::readBlob().

◆ writeBlob()

void BackingStore::writeBlob ( Addr  ptr,
const void *  data,
int  size 
)
inline

Definition at line 122 of file proxy_ptr.test.cc.

References accesses, base, data, rangeCheck(), and store.

Referenced by TestProxy::writeBlob().

Member Data Documentation

◆ accesses

Accesses BackingStore::accesses
mutable

Definition at line 77 of file proxy_ptr.test.cc.

Referenced by expect_access(), expect_accesses(), readBlob(), and writeBlob().

◆ base

Addr BackingStore::base

Definition at line 65 of file proxy_ptr.test.cc.

Referenced by rangeCheck(), readBlob(), and writeBlob().

◆ store

std::vector<uint8_t> BackingStore::store

Definition at line 64 of file proxy_ptr.test.cc.

Referenced by rangeCheck(), readBlob(), TEST(), and writeBlob().


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

Generated on Wed Sep 30 2020 14:02:21 for gem5 by doxygen 1.8.17