gem5 v24.0.0.0
|
Go to the source code of this file.
Classes | |
struct | Access |
class | BackingStore |
class | TestProxy |
struct | TestABI |
struct | gem5::guest_abi::Argument< TestABI, Addr > |
Namespaces | |
namespace | gem5 |
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved. | |
namespace | gem5::guest_abi |
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 (ProxyPtrTest, GuestABI) | |
Variables | |
bool | abiCalled = false |
bool | abiCalledConst = false |
#define EXPECT_ACCESSES | ( | store, | |
... ) |
Definition at line 147 of file proxy_ptr.test.cc.
using Accesses = std::vector<Access> |
Definition at line 61 of file proxy_ptr.test.cc.
using ConstTestPtr = ConstProxyPtr<T, TestProxy> |
Definition at line 188 of file proxy_ptr.test.cc.
Definition at line 185 of file proxy_ptr.test.cc.
void abiTestFunc | ( | ThreadContext * | tc, |
TestPtr< uint8_t > | ptr ) |
Definition at line 497 of file proxy_ptr.test.cc.
References abiCalled, and gem5::ConstProxyPtr< T, Proxy >::addr().
Referenced by TEST().
void abiTestFuncConst | ( | ThreadContext * | tc, |
ConstTestPtr< uint8_t > | ptr ) |
Definition at line 504 of file proxy_ptr.test.cc.
References abiCalledConst, and gem5::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 141 of file proxy_ptr.test.cc.
References BackingStore::expect_accesses(), and expected().
std::ostream & operator<< | ( | std::ostream & | os, |
const Access & | access ) |
Definition at line 154 of file proxy_ptr.test.cc.
References Access::addr, gem5::ccprintf(), gem5::X86ISA::os, Access::read, and Access::size.
TEST | ( | ProxyPtr | , |
Clean | ) |
Definition at line 190 of file proxy_ptr.test.cc.
References gem5::ConstProxyPtr< T, Proxy >::addr(), and EXPECT_ACCESSES.
TEST | ( | ProxyPtr | , |
ConstOperators | ) |
Definition at line 297 of file proxy_ptr.test.cc.
References gem5::ArmISA::a, gem5::ConstProxyPtr< T, Proxy >::addr(), gem5::ArmISA::b, gem5::ArmISA::c, gem5::ArmISA::d, gem5::ConstProxyPtr< T, Proxy >::load(), and BackingStore::store.
TEST | ( | ProxyPtr | , |
Dirty | ) |
Definition at line 213 of file proxy_ptr.test.cc.
References gem5::ConstProxyPtr< T, Proxy >::addr(), EXPECT_ACCESSES, and BackingStore::store.
TEST | ( | ProxyPtr | , |
LoadAndFlush | ) |
Definition at line 235 of file proxy_ptr.test.cc.
References gem5::ProxyPtr< T, Proxy >::flush(), gem5::ConstProxyPtr< T, Proxy >::load(), and BackingStore::store.
TEST | ( | ProxyPtr | , |
NonConstOperators | ) |
Definition at line 380 of file proxy_ptr.test.cc.
References gem5::ArmISA::a, gem5::ConstProxyPtr< T, Proxy >::addr(), gem5::ArmISA::b, gem5::ArmISA::c, gem5::ArmISA::d, gem5::ProxyPtr< T, Proxy >::flush(), gem5::ConstProxyPtr< T, Proxy >::load(), and BackingStore::store.
TEST | ( | ProxyPtrTest | , |
GuestABI | ) |
Definition at line 510 of file proxy_ptr.test.cc.
References abiCalled, abiCalledConst, abiTestFunc(), abiTestFuncConst(), and gem5::invokeSimcall().
bool abiCalled = false |
Definition at line 493 of file proxy_ptr.test.cc.
Referenced by abiTestFunc(), and TEST().
bool abiCalledConst = false |
Definition at line 494 of file proxy_ptr.test.cc.
Referenced by abiTestFuncConst(), and TEST().