gem5 v24.0.0.0
Loading...
Searching...
No Matches
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 63 of file proxy_ptr.test.cc.

Constructor & Destructor Documentation

◆ BackingStore()

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

Definition at line 69 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 82 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 97 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 72 of file proxy_ptr.test.cc.

References gem5::X86ISA::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 132 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 124 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 79 of file proxy_ptr.test.cc.

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

◆ base

Addr BackingStore::base

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

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

◆ store

std::vector<uint8_t> BackingStore::store

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

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


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

Generated on Tue Jun 18 2024 16:24:09 for gem5 by doxygen 1.11.0