|
gem5
v21.0.1.0
|
Go to the source code of this file.
Classes | |
| struct | Access |
| class | BackingStore |
| class | TestProxy |
| struct | TestABI |
| struct | GuestABI::Argument< TestABI, Addr > |
Namespaces | |
| GuestABI | |
Macros | |
| #define | EXPECT_ACCESSES(store, ...) |
Typedefs | |
| using | Accesses = std::vector< Access > |
| template<typename T > | |
| using | TestPtr = ProxyPtr< T, TestProxy > |
| template<typename T > | |
| using | ConstTestPtr = ConstProxyPtr< T, TestProxy > |
Functions | |
| ::testing::AssertionResult | accessed (const char *expr1, const char *expr2, const BackingStore &store, const Accesses &expected) |
| std::ostream & | operator<< (std::ostream &os, const Access &access) |
| TEST (ProxyPtr, Clean) | |
| TEST (ProxyPtr, Dirty) | |
| TEST (ProxyPtr, LoadAndFlush) | |
| TEST (ProxyPtr, ConstOperators) | |
| TEST (ProxyPtr, NonConstOperators) | |
| void | abiTestFunc (ThreadContext *tc, TestPtr< uint8_t > ptr) |
| void | abiTestFuncConst (ThreadContext *tc, ConstTestPtr< uint8_t > ptr) |
| TEST (ProxyPtr, GuestABI) | |
Variables | |
| bool | abiCalled = false |
| bool | abiCalledConst = false |
| #define EXPECT_ACCESSES | ( | store, | |
| ... | |||
| ) |
Definition at line 145 of file proxy_ptr.test.cc.
| using Accesses = std::vector<Access> |
Definition at line 59 of file proxy_ptr.test.cc.
| using ConstTestPtr = ConstProxyPtr<T, TestProxy> |
Definition at line 186 of file proxy_ptr.test.cc.
Definition at line 183 of file proxy_ptr.test.cc.
| void abiTestFunc | ( | ThreadContext * | tc, |
| TestPtr< uint8_t > | ptr | ||
| ) |
Definition at line 491 of file proxy_ptr.test.cc.
References abiCalled, and ConstProxyPtr< T, Proxy >::addr().
Referenced by TEST().
| void abiTestFuncConst | ( | ThreadContext * | tc, |
| ConstTestPtr< uint8_t > | ptr | ||
| ) |
Definition at line 498 of file proxy_ptr.test.cc.
References abiCalledConst, and ConstProxyPtr< T, Proxy >::addr().
Referenced by TEST().
| ::testing::AssertionResult accessed | ( | const char * | expr1, |
| const char * | expr2, | ||
| const BackingStore & | store, | ||
| const Accesses & | expected | ||
| ) |
Definition at line 139 of file proxy_ptr.test.cc.
References BackingStore::expect_accesses(), and expected.
| std::ostream& operator<< | ( | std::ostream & | os, |
| const Access & | access | ||
| ) |
Definition at line 153 of file proxy_ptr.test.cc.
References Access::addr, ccprintf(), X86ISA::os, Access::read, and Access::size.
| TEST | ( | ProxyPtr | , |
| Clean | |||
| ) |
Definition at line 188 of file proxy_ptr.test.cc.
References ConstProxyPtr< T, Proxy >::addr(), and EXPECT_ACCESSES.
| TEST | ( | ProxyPtr | , |
| ConstOperators | |||
| ) |
Definition at line 295 of file proxy_ptr.test.cc.
References ArmISA::a, ConstProxyPtr< T, Proxy >::addr(), ArmISA::b, ArmISA::c, ArmISA::d, and BackingStore::store.
| TEST | ( | ProxyPtr | , |
| Dirty | |||
| ) |
Definition at line 211 of file proxy_ptr.test.cc.
References ConstProxyPtr< T, Proxy >::addr(), EXPECT_ACCESSES, and BackingStore::store.
| TEST | ( | ProxyPtr | , |
| GuestABI | |||
| ) |
Definition at line 504 of file proxy_ptr.test.cc.
References abiCalled, abiCalledConst, abiTestFunc(), and abiTestFuncConst().
| TEST | ( | ProxyPtr | , |
| LoadAndFlush | |||
| ) |
Definition at line 233 of file proxy_ptr.test.cc.
References ProxyPtr< T, Proxy >::flush(), and BackingStore::store.
| TEST | ( | ProxyPtr | , |
| NonConstOperators | |||
| ) |
Definition at line 378 of file proxy_ptr.test.cc.
References ArmISA::a, ConstProxyPtr< T, Proxy >::addr(), ArmISA::b, ArmISA::c, ArmISA::d, and BackingStore::store.
| bool abiCalled = false |
Definition at line 487 of file proxy_ptr.test.cc.
Referenced by abiTestFunc(), and TEST().
| bool abiCalledConst = false |
Definition at line 488 of file proxy_ptr.test.cc.
Referenced by abiTestFuncConst(), and TEST().