|
gem5 [DEVELOP-FOR-25.0]
|
#include <gmock/gmock.h>#include <gtest/gtest.h>#include <initializer_list>#include <list>#include <memory>#include <ostream>#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 | |
| namespace | gem5 |
| Copyright (c) 2024 Arm Limited All rights reserved. | |
Typedefs | |
| using | RangeList = std::list<TranslationGen::Range> |
Functions | |
| std::ostream & | gem5::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 | gem5::dummyFault1 = std::make_shared<gem5::FaultBase>() |
| Fault | gem5::dummyFault2 = std::make_shared<gem5::FaultBase>() |
| using RangeList = std::list<TranslationGen::Range> |
Definition at line 68 of file translation_gen.test.cc.
| MATCHER | ( | GenRangeEq | , |
| "" | ) |
Definition at line 71 of file translation_gen.test.cc.
References expected().
| MATCHER | ( | TransRangeEq | , |
| "" | ) |
Definition at line 87 of file translation_gen.test.cc.
References expected().
| TEST | ( | TranslationGen | , |
| Accessors | ) |
Definition at line 134 of file translation_gen.test.cc.
References gem5::TranslationGen::size(), and gem5::TranslationGen::start().
| TEST | ( | TranslationGen | , |
| BeginAndEnd | ) |
Definition at line 147 of file translation_gen.test.cc.
References gem5::TranslationGen::begin(), and gem5::TranslationGen::end().
| TEST | ( | TranslationGen | , |
| FaultAtStart | ) |
Definition at line 251 of file translation_gen.test.cc.
References gem5::dummyFault1, and gem5::NoFault.
| TEST | ( | TranslationGen | , |
| FaultInMiddle | ) |
Definition at line 281 of file translation_gen.test.cc.
References gem5::dummyFault1, and gem5::NoFault.
| TEST | ( | TranslationGen | , |
| RetryOnFault | ) |
Definition at line 188 of file translation_gen.test.cc.
References gem5::dummyFault1, and gem5::NoFault.
| TEST | ( | TranslationGen | , |
| RetryTwiceOnFault | ) |
Definition at line 218 of file translation_gen.test.cc.
References gem5::dummyFault1, gem5::dummyFault2, and gem5::NoFault.
| TEST | ( | TranslationGen | , |
| SuccessfulTwoStep | ) |
Definition at line 161 of file translation_gen.test.cc.
References gem5::NoFault.
| TEST | ( | TranslationGen | , |
| VariablePageSize | ) |
Definition at line 314 of file translation_gen.test.cc.
References gem5::NoFault.
| TEST | ( | TranslationGenDeathTest | , |
| IncrementEndIterator | ) |
Definition at line 344 of file translation_gen.test.cc.
References gem5::TranslationGen::end(), and gem5::gtestLogOutput.