gem5 v24.0.0.0
Loading...
Searching...
No Matches
translation_gen.test.cc File Reference
#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 - Pranith Kumar Copyright (c) 2020 Inria 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>()
 

Typedef Documentation

◆ RangeList

Definition at line 68 of file translation_gen.test.cc.

Function Documentation

◆ MATCHER() [1/2]

MATCHER ( GenRangeEq ,
""  )

Definition at line 71 of file translation_gen.test.cc.

References expected().

◆ MATCHER() [2/2]

MATCHER ( TransRangeEq ,
""  )

Definition at line 87 of file translation_gen.test.cc.

References expected().

◆ TEST() [1/9]

TEST ( TranslationGen ,
Accessors  )

◆ TEST() [2/9]

TEST ( TranslationGen ,
BeginAndEnd  )

◆ TEST() [3/9]

TEST ( TranslationGen ,
FaultAtStart  )

Definition at line 251 of file translation_gen.test.cc.

References gem5::dummyFault1, and gem5::NoFault.

◆ TEST() [4/9]

TEST ( TranslationGen ,
FaultInMiddle  )

Definition at line 281 of file translation_gen.test.cc.

References gem5::dummyFault1, and gem5::NoFault.

◆ TEST() [5/9]

TEST ( TranslationGen ,
RetryOnFault  )

Definition at line 188 of file translation_gen.test.cc.

References gem5::dummyFault1, and gem5::NoFault.

◆ TEST() [6/9]

TEST ( TranslationGen ,
RetryTwiceOnFault  )

Definition at line 218 of file translation_gen.test.cc.

References gem5::dummyFault1, gem5::dummyFault2, and gem5::NoFault.

◆ TEST() [7/9]

TEST ( TranslationGen ,
SuccessfulTwoStep  )

Definition at line 161 of file translation_gen.test.cc.

References gem5::NoFault.

◆ TEST() [8/9]

TEST ( TranslationGen ,
VariablePageSize  )

Definition at line 314 of file translation_gen.test.cc.

References gem5::NoFault.

◆ TEST() [9/9]

TEST ( TranslationGenDeathTest ,
IncrementEndIterator  )

Definition at line 344 of file translation_gen.test.cc.

References gem5::TranslationGen::end(), and gem5::gtestLogOutput.


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0