gem5
v21.2.1.1
|
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <initializer_list>
#include <list>
#include <memory>
#include <vector>
#include "base/cprintf.hh"
#include "base/gtest/logging.hh"
#include "mem/translation_gen.hh"
Go to the source code of this file.
Classes | |
class | gem5::FaultBase |
class | TestTranslationGen |
Namespaces | |
gem5 | |
Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223. | |
Typedefs | |
using | RangeList = std::list< TranslationGen::Range > |
Functions | |
std::ostream & | operator<< (std::ostream &os, const TranslationGen::Range &range) |
MATCHER (GenRangeEq, "") | |
MATCHER (TransRangeEq, "") | |
TEST (TranslationGen, Accessors) | |
TEST (TranslationGen, BeginAndEnd) | |
TEST (TranslationGen, SuccessfulTwoStep) | |
TEST (TranslationGen, RetryOnFault) | |
TEST (TranslationGen, RetryTwiceOnFault) | |
TEST (TranslationGen, FaultAtStart) | |
TEST (TranslationGen, FaultInMiddle) | |
TEST (TranslationGen, VariablePageSize) | |
TEST (TranslationGenDeathTest, IncrementEndIterator) | |
Variables | |
Fault | dummyFault1 = std::make_shared<gem5::FaultBase>() |
Fault | dummyFault2 = std::make_shared<gem5::FaultBase>() |
using RangeList = std::list<TranslationGen::Range> |
Definition at line 67 of file translation_gen.test.cc.
MATCHER | ( | GenRangeEq | , |
"" | |||
) |
Definition at line 70 of file translation_gen.test.cc.
References expected.
MATCHER | ( | TransRangeEq | , |
"" | |||
) |
Definition at line 86 of file translation_gen.test.cc.
References expected.
std::ostream& operator<< | ( | std::ostream & | os, |
const TranslationGen::Range & | range | ||
) |
Definition at line 56 of file translation_gen.test.cc.
References gem5::ccprintf(), dummyFault1, dummyFault2, gem5::TranslationGen::Range::fault, gem5::X86ISA::os, gem5::TranslationGen::Range::paddr, gem5::TranslationGen::Range::size, and gem5::TranslationGen::Range::vaddr.
TEST | ( | TranslationGen | , |
Accessors | |||
) |
Definition at line 132 of file translation_gen.test.cc.
References gem5::TranslationGen::size(), and gem5::TranslationGen::start().
TEST | ( | TranslationGen | , |
BeginAndEnd | |||
) |
Definition at line 145 of file translation_gen.test.cc.
References gem5::TranslationGen::begin(), and gem5::TranslationGen::end().
TEST | ( | TranslationGen | , |
FaultAtStart | |||
) |
Definition at line 249 of file translation_gen.test.cc.
References dummyFault1, and gem5::NoFault.
TEST | ( | TranslationGen | , |
FaultInMiddle | |||
) |
Definition at line 279 of file translation_gen.test.cc.
References dummyFault1, and gem5::NoFault.
TEST | ( | TranslationGen | , |
RetryOnFault | |||
) |
Definition at line 186 of file translation_gen.test.cc.
References dummyFault1, and gem5::NoFault.
TEST | ( | TranslationGen | , |
RetryTwiceOnFault | |||
) |
Definition at line 216 of file translation_gen.test.cc.
References dummyFault1, dummyFault2, and gem5::NoFault.
TEST | ( | TranslationGen | , |
SuccessfulTwoStep | |||
) |
Definition at line 159 of file translation_gen.test.cc.
References gem5::NoFault.
TEST | ( | TranslationGen | , |
VariablePageSize | |||
) |
Definition at line 312 of file translation_gen.test.cc.
References gem5::NoFault.
TEST | ( | TranslationGenDeathTest | , |
IncrementEndIterator | |||
) |
Definition at line 342 of file translation_gen.test.cc.
References gem5::TranslationGen::end(), and gem5::gtestLogOutput.
Fault dummyFault1 = std::make_shared<gem5::FaultBase>() |
Definition at line 52 of file translation_gen.test.cc.
Referenced by operator<<(), and TEST().
Fault dummyFault2 = std::make_shared<gem5::FaultBase>() |
Definition at line 53 of file translation_gen.test.cc.
Referenced by operator<<(), and TEST().