gem5 v24.1.0.1
Loading...
Searching...
No Matches
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 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 Mon Jan 13 2025 04:28:47 for gem5 by doxygen 1.9.8