gem5  v22.0.0.1
Classes | Functions
reg_bank.test.cc File Reference
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <vector>
#include "dev/reg_bank.hh"

Go to the source code of this file.

Classes

class  RegisterRazTest
 
class  RegisterRaoTest
 
class  RegisterBufTest
 
class  RegisterLBufTest
 
class  TypedRegisterTest
 
class  RegisterBankTest
 
class  RegisterBankTest::TestRegBank
 
struct  RegisterBankTest::Access
 
class  RegisterBankTest::TestReg
 

Functions

 TEST_F (RegisterRazTest, Name)
 
 TEST_F (RegisterRazTest, Size)
 
 TEST_F (RegisterRazTest, FullAccess)
 
 TEST_F (RegisterRazTest, PartialAccessHigh)
 
 TEST_F (RegisterRazTest, PartialAccessLow)
 
 TEST_F (RegisterRazTest, PartialAccessMid)
 
 TEST_F (RegisterRazTest, Serialize)
 
 TEST_F (RegisterRazTest, Unserialize)
 
 TEST_F (RegisterRaoTest, Name)
 
 TEST_F (RegisterRaoTest, Size)
 
 TEST_F (RegisterRaoTest, FullAccess)
 
 TEST_F (RegisterRaoTest, PartialAccessHigh)
 
 TEST_F (RegisterRaoTest, PartialAccessLow)
 
 TEST_F (RegisterRaoTest, PartialAccessMid)
 
 TEST_F (RegisterRaoTest, Serialize)
 
 TEST_F (RegisterRaoTest, Unserialize)
 
 TEST_F (RegisterBufTest, Name)
 
 TEST_F (RegisterBufTest, Size)
 
 TEST_F (RegisterBufTest, FullRead)
 
 TEST_F (RegisterBufTest, FullWrite)
 
 TEST_F (RegisterBufTest, PartialReadHigh)
 
 TEST_F (RegisterBufTest, PartialWriteHigh)
 
 TEST_F (RegisterBufTest, PartialReadLow)
 
 TEST_F (RegisterBufTest, PartialWriteLow)
 
 TEST_F (RegisterBufTest, PartialReadMid)
 
 TEST_F (RegisterBufTest, PartialWriteMid)
 
 TEST_F (RegisterBufTest, Serialize)
 
 TEST_F (RegisterBufTest, Unserialize)
 
 TEST_F (RegisterLBufTest, Name)
 
 TEST_F (RegisterLBufTest, PartialWrite)
 
 TEST_F (RegisterLBufTest, Serialize)
 
 TEST_F (RegisterLBufTest, UnserializeSucess)
 
 TEST_F (RegisterLBufTest, UnserializeFailure)
 
 TEST_F (TypedRegisterTest, DefaultConstructor)
 
 TEST_F (TypedRegisterTest, Name)
 
 TEST_F (TypedRegisterTest, Size)
 
 TEST_F (TypedRegisterTest, Writable)
 
 TEST_F (TypedRegisterTest, GetInitial)
 
 TEST_F (TypedRegisterTest, Get)
 
 TEST_F (TypedRegisterTest, BigEndianDefaultFullRead)
 
 TEST_F (TypedRegisterTest, BigEndianDefaultFullWrite)
 
 TEST_F (TypedRegisterTest, BigEndianDefaultPartialReadLow)
 
 TEST_F (TypedRegisterTest, BigEndianDefaultPartialReadHigh)
 
 TEST_F (TypedRegisterTest, BigEndianDefaultPartialWriteLow)
 
 TEST_F (TypedRegisterTest, BigEndianDefaultPartialWriteHigh)
 
 TEST_F (TypedRegisterTest, LittleEndianDefaultFullRead)
 
 TEST_F (TypedRegisterTest, LittleEndianDefaultFullWrite)
 
 TEST_F (TypedRegisterTest, LittleEndianDefaultPartialReadLow)
 
 TEST_F (TypedRegisterTest, LittleEndianDefaultPartialReadHigh)
 
 TEST_F (TypedRegisterTest, LittleEndianDefaultPartialWriteLow)
 
 TEST_F (TypedRegisterTest, LittleEndianDefaultPartialWriteHigh)
 
 TEST_F (TypedRegisterTest, SetWriteable)
 
 TEST_F (TypedRegisterTest, ReadOnly)
 
 TEST_F (TypedRegisterTest, UpdateWithMask)
 
 TEST_F (TypedRegisterTest, UpdateDefaultMask)
 
 TEST_F (TypedRegisterTest, Reader)
 
 TEST_F (TypedRegisterTest, ReaderMF)
 
 TEST_F (TypedRegisterTest, Writer)
 
 TEST_F (TypedRegisterTest, WriterMF)
 
 TEST_F (TypedRegisterTest, PartialReader)
 
 TEST_F (TypedRegisterTest, PartialReaderMF)
 
 TEST_F (TypedRegisterTest, PartialWriter)
 
 TEST_F (TypedRegisterTest, PartialWriterMF)
 
 TEST_F (TypedRegisterTest, PartialReaderReader)
 
 TEST_F (TypedRegisterTest, PartialWriterReaderWriter)
 
 TEST_F (TypedRegisterTest, Serialize)
 
 TEST_F (TypedRegisterTest, UnserializeSucess)
 
 TEST_F (TypedRegisterTest, UnserializeFailure)
 
 TEST_F (RegisterBankTest, Name)
 
 TEST_F (RegisterBankTest, Base)
 
 TEST_F (RegisterBankTest, AddRegistersSize)
 
 TEST_F (RegisterBankTest, ReadOneAlignedFirst)
 
 TEST_F (RegisterBankTest, ReadOneAlignedMid)
 
 TEST_F (RegisterBankTest, ReadOneAlignedLast)
 
 TEST_F (RegisterBankTest, ReadTwoAligned)
 
 TEST_F (RegisterBankTest, ReadContained)
 
 TEST_F (RegisterBankTest, ReadOneSpanning)
 
 TEST_F (RegisterBankTest, ReadTwoSpanning)
 
 TEST_F (RegisterBankTest, ReadPartialFull)
 
 TEST_F (RegisterBankTest, ReadFullPartial)
 
 TEST_F (RegisterBankTest, ReadLastPartial)
 
 TEST_F (RegisterBankTest, WriteOneAlignedFirst)
 
 TEST_F (RegisterBankTest, WriteOneAlignedMid)
 
 TEST_F (RegisterBankTest, WriteOneAlignedLast)
 
 TEST_F (RegisterBankTest, WriteTwoAligned)
 
 TEST_F (RegisterBankTest, WriteContained)
 
 TEST_F (RegisterBankTest, WriteOneSpanning)
 
 TEST_F (RegisterBankTest, WriteTwoSpanning)
 
 TEST_F (RegisterBankTest, WritePartialFull)
 
 TEST_F (RegisterBankTest, WriteFullPartial)
 

Function Documentation

◆ TEST_F() [1/90]

TEST_F ( RegisterBankTest  ,
AddRegistersSize   
)

◆ TEST_F() [2/90]

TEST_F ( RegisterBankTest  ,
Base   
)

Definition at line 998 of file reg_bank.test.cc.

References gem5::RegisterBank< BankByteOrder >::base().

◆ TEST_F() [3/90]

TEST_F ( RegisterBankTest  ,
Name   
)

Definition at line 992 of file reg_bank.test.cc.

References gem5::RegisterBank< BankByteOrder >::name().

◆ TEST_F() [4/90]

TEST_F ( RegisterBankTest  ,
ReadContained   
)

◆ TEST_F() [5/90]

TEST_F ( RegisterBankTest  ,
ReadFullPartial   
)

◆ TEST_F() [6/90]

TEST_F ( RegisterBankTest  ,
ReadLastPartial   
)

◆ TEST_F() [7/90]

TEST_F ( RegisterBankTest  ,
ReadOneAlignedFirst   
)

◆ TEST_F() [8/90]

TEST_F ( RegisterBankTest  ,
ReadOneAlignedLast   
)

◆ TEST_F() [9/90]

TEST_F ( RegisterBankTest  ,
ReadOneAlignedMid   
)

◆ TEST_F() [10/90]

TEST_F ( RegisterBankTest  ,
ReadOneSpanning   
)

◆ TEST_F() [11/90]

TEST_F ( RegisterBankTest  ,
ReadPartialFull   
)

◆ TEST_F() [12/90]

TEST_F ( RegisterBankTest  ,
ReadTwoAligned   
)

◆ TEST_F() [13/90]

TEST_F ( RegisterBankTest  ,
ReadTwoSpanning   
)

◆ TEST_F() [14/90]

TEST_F ( RegisterBankTest  ,
WriteContained   
)

◆ TEST_F() [15/90]

TEST_F ( RegisterBankTest  ,
WriteFullPartial   
)

◆ TEST_F() [16/90]

TEST_F ( RegisterBankTest  ,
WriteOneAlignedFirst   
)

◆ TEST_F() [17/90]

TEST_F ( RegisterBankTest  ,
WriteOneAlignedLast   
)

◆ TEST_F() [18/90]

TEST_F ( RegisterBankTest  ,
WriteOneAlignedMid   
)

◆ TEST_F() [19/90]

TEST_F ( RegisterBankTest  ,
WriteOneSpanning   
)

◆ TEST_F() [20/90]

TEST_F ( RegisterBankTest  ,
WritePartialFull   
)

◆ TEST_F() [21/90]

TEST_F ( RegisterBankTest  ,
WriteTwoAligned   
)

◆ TEST_F() [22/90]

TEST_F ( RegisterBankTest  ,
WriteTwoSpanning   
)

◆ TEST_F() [23/90]

TEST_F ( RegisterBufTest  ,
FullRead   
)

Definition at line 276 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [24/90]

TEST_F ( RegisterBufTest  ,
FullWrite   
)

Definition at line 288 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [25/90]

TEST_F ( RegisterBufTest  ,
Name   
)

Definition at line 265 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [26/90]

TEST_F ( RegisterBufTest  ,
PartialReadHigh   
)

Definition at line 300 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [27/90]

TEST_F ( RegisterBufTest  ,
PartialReadLow   
)

Definition at line 324 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [28/90]

TEST_F ( RegisterBufTest  ,
PartialReadMid   
)

Definition at line 348 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [29/90]

TEST_F ( RegisterBufTest  ,
PartialWriteHigh   
)

Definition at line 312 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [30/90]

TEST_F ( RegisterBufTest  ,
PartialWriteLow   
)

Definition at line 336 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [31/90]

TEST_F ( RegisterBufTest  ,
PartialWriteMid   
)

Definition at line 360 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [32/90]

TEST_F ( RegisterBufTest  ,
Serialize   
)

Definition at line 371 of file reg_bank.test.cc.

References gem5::X86ISA::os, and gem5::X86ISA::reg.

◆ TEST_F() [33/90]

TEST_F ( RegisterBufTest  ,
Size   
)

Definition at line 270 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [34/90]

TEST_F ( RegisterBufTest  ,
Unserialize   
)

Definition at line 378 of file reg_bank.test.cc.

References gem5::X86ISA::reg, and gem5::VegaISA::s.

◆ TEST_F() [35/90]

TEST_F ( RegisterLBufTest  ,
Name   
)

Definition at line 406 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [36/90]

TEST_F ( RegisterLBufTest  ,
PartialWrite   
)

Definition at line 411 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [37/90]

TEST_F ( RegisterLBufTest  ,
Serialize   
)

Definition at line 419 of file reg_bank.test.cc.

References gem5::ArmISA::i, gem5::X86ISA::os, and gem5::X86ISA::reg.

◆ TEST_F() [38/90]

TEST_F ( RegisterLBufTest  ,
UnserializeFailure   
)

Definition at line 436 of file reg_bank.test.cc.

References gem5::X86ISA::reg, and gem5::VegaISA::s.

◆ TEST_F() [39/90]

TEST_F ( RegisterLBufTest  ,
UnserializeSucess   
)

Definition at line 428 of file reg_bank.test.cc.

References gem5::X86ISA::reg, and gem5::VegaISA::s.

◆ TEST_F() [40/90]

TEST_F ( RegisterRaoTest  ,
FullAccess   
)

Definition at line 187 of file reg_bank.test.cc.

◆ TEST_F() [41/90]

TEST_F ( RegisterRaoTest  ,
Name   
)

Definition at line 176 of file reg_bank.test.cc.

◆ TEST_F() [42/90]

TEST_F ( RegisterRaoTest  ,
PartialAccessHigh   
)

Definition at line 197 of file reg_bank.test.cc.

◆ TEST_F() [43/90]

TEST_F ( RegisterRaoTest  ,
PartialAccessLow   
)

Definition at line 207 of file reg_bank.test.cc.

◆ TEST_F() [44/90]

TEST_F ( RegisterRaoTest  ,
PartialAccessMid   
)

Definition at line 217 of file reg_bank.test.cc.

◆ TEST_F() [45/90]

TEST_F ( RegisterRaoTest  ,
Serialize   
)

Definition at line 226 of file reg_bank.test.cc.

References gem5::X86ISA::os.

◆ TEST_F() [46/90]

TEST_F ( RegisterRaoTest  ,
Size   
)

Definition at line 181 of file reg_bank.test.cc.

◆ TEST_F() [47/90]

TEST_F ( RegisterRaoTest  ,
Unserialize   
)

Definition at line 233 of file reg_bank.test.cc.

References gem5::VegaISA::s.

◆ TEST_F() [48/90]

TEST_F ( RegisterRazTest  ,
FullAccess   
)

Definition at line 101 of file reg_bank.test.cc.

References gem5::ArmISA::raz.

◆ TEST_F() [49/90]

TEST_F ( RegisterRazTest  ,
Name   
)

Definition at line 90 of file reg_bank.test.cc.

References gem5::ArmISA::raz.

◆ TEST_F() [50/90]

TEST_F ( RegisterRazTest  ,
PartialAccessHigh   
)

Definition at line 111 of file reg_bank.test.cc.

References gem5::ArmISA::raz.

◆ TEST_F() [51/90]

TEST_F ( RegisterRazTest  ,
PartialAccessLow   
)

Definition at line 121 of file reg_bank.test.cc.

References gem5::ArmISA::raz.

◆ TEST_F() [52/90]

TEST_F ( RegisterRazTest  ,
PartialAccessMid   
)

Definition at line 131 of file reg_bank.test.cc.

References gem5::ArmISA::raz.

◆ TEST_F() [53/90]

TEST_F ( RegisterRazTest  ,
Serialize   
)

Definition at line 140 of file reg_bank.test.cc.

References gem5::X86ISA::os, and gem5::ArmISA::raz.

◆ TEST_F() [54/90]

TEST_F ( RegisterRazTest  ,
Size   
)

Definition at line 95 of file reg_bank.test.cc.

References gem5::ArmISA::raz.

◆ TEST_F() [55/90]

TEST_F ( RegisterRazTest  ,
Unserialize   
)

Definition at line 147 of file reg_bank.test.cc.

References gem5::ArmISA::raz, and gem5::VegaISA::s.

◆ TEST_F() [56/90]

TEST_F ( TypedRegisterTest  ,
BigEndianDefaultFullRead   
)

Definition at line 508 of file reg_bank.test.cc.

◆ TEST_F() [57/90]

TEST_F ( TypedRegisterTest  ,
BigEndianDefaultFullWrite   
)

Definition at line 516 of file reg_bank.test.cc.

◆ TEST_F() [58/90]

TEST_F ( TypedRegisterTest  ,
BigEndianDefaultPartialReadHigh   
)

Definition at line 532 of file reg_bank.test.cc.

◆ TEST_F() [59/90]

TEST_F ( TypedRegisterTest  ,
BigEndianDefaultPartialReadLow   
)

Definition at line 524 of file reg_bank.test.cc.

◆ TEST_F() [60/90]

TEST_F ( TypedRegisterTest  ,
BigEndianDefaultPartialWriteHigh   
)

Definition at line 548 of file reg_bank.test.cc.

◆ TEST_F() [61/90]

TEST_F ( TypedRegisterTest  ,
BigEndianDefaultPartialWriteLow   
)

Definition at line 540 of file reg_bank.test.cc.

◆ TEST_F() [62/90]

TEST_F ( TypedRegisterTest  ,
DefaultConstructor   
)

Definition at line 471 of file reg_bank.test.cc.

◆ TEST_F() [63/90]

TEST_F ( TypedRegisterTest  ,
Get   
)

Definition at line 499 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [64/90]

TEST_F ( TypedRegisterTest  ,
GetInitial   
)

Definition at line 494 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [65/90]

TEST_F ( TypedRegisterTest  ,
LittleEndianDefaultFullRead   
)

Definition at line 556 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [66/90]

TEST_F ( TypedRegisterTest  ,
LittleEndianDefaultFullWrite   
)

Definition at line 564 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [67/90]

TEST_F ( TypedRegisterTest  ,
LittleEndianDefaultPartialReadHigh   
)

Definition at line 580 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [68/90]

TEST_F ( TypedRegisterTest  ,
LittleEndianDefaultPartialReadLow   
)

Definition at line 572 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [69/90]

TEST_F ( TypedRegisterTest  ,
LittleEndianDefaultPartialWriteHigh   
)

Definition at line 596 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [70/90]

TEST_F ( TypedRegisterTest  ,
LittleEndianDefaultPartialWriteLow   
)

Definition at line 588 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [71/90]

TEST_F ( TypedRegisterTest  ,
Name   
)

Definition at line 477 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [72/90]

TEST_F ( TypedRegisterTest  ,
PartialReader   
)

◆ TEST_F() [73/90]

TEST_F ( TypedRegisterTest  ,
PartialReaderMF   
)

◆ TEST_F() [74/90]

TEST_F ( TypedRegisterTest  ,
PartialReaderReader   
)

Definition at line 828 of file reg_bank.test.cc.

References gem5::VegaISA::r, and gem5::X86ISA::reg.

◆ TEST_F() [75/90]

TEST_F ( TypedRegisterTest  ,
PartialWriter   
)

◆ TEST_F() [76/90]

TEST_F ( TypedRegisterTest  ,
PartialWriterMF   
)

◆ TEST_F() [77/90]

TEST_F ( TypedRegisterTest  ,
PartialWriterReaderWriter   
)

Definition at line 844 of file reg_bank.test.cc.

References gem5::VegaISA::r, gem5::X86ISA::reg, and gem5::VegaISA::v.

◆ TEST_F() [78/90]

TEST_F ( TypedRegisterTest  ,
Reader   
)

Definition at line 639 of file reg_bank.test.cc.

References gem5::VegaISA::r, and gem5::X86ISA::reg.

◆ TEST_F() [79/90]

TEST_F ( TypedRegisterTest  ,
ReaderMF   
)

Definition at line 655 of file reg_bank.test.cc.

References gem5::VegaISA::r, and gem5::X86ISA::reg.

◆ TEST_F() [80/90]

TEST_F ( TypedRegisterTest  ,
ReadOnly   
)

Definition at line 616 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [81/90]

TEST_F ( TypedRegisterTest  ,
Serialize   
)

Definition at line 867 of file reg_bank.test.cc.

References gem5::X86ISA::os, and gem5::X86ISA::reg.

◆ TEST_F() [82/90]

TEST_F ( TypedRegisterTest  ,
SetWriteable   
)

Definition at line 604 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [83/90]

TEST_F ( TypedRegisterTest  ,
Size   
)

Definition at line 482 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [84/90]

TEST_F ( TypedRegisterTest  ,
UnserializeFailure   
)

Definition at line 881 of file reg_bank.test.cc.

References gem5::X86ISA::reg, and gem5::VegaISA::s.

◆ TEST_F() [85/90]

TEST_F ( TypedRegisterTest  ,
UnserializeSucess   
)

Definition at line 874 of file reg_bank.test.cc.

References gem5::X86ISA::reg, and gem5::VegaISA::s.

◆ TEST_F() [86/90]

TEST_F ( TypedRegisterTest  ,
UpdateDefaultMask   
)

Definition at line 631 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [87/90]

TEST_F ( TypedRegisterTest  ,
UpdateWithMask   
)

Definition at line 624 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [88/90]

TEST_F ( TypedRegisterTest  ,
Writable   
)

Definition at line 487 of file reg_bank.test.cc.

References gem5::X86ISA::reg.

◆ TEST_F() [89/90]

TEST_F ( TypedRegisterTest  ,
Writer   
)

Definition at line 680 of file reg_bank.test.cc.

References gem5::VegaISA::r, gem5::X86ISA::reg, and gem5::VegaISA::v.

◆ TEST_F() [90/90]

TEST_F ( TypedRegisterTest  ,
WriterMF   
)

Definition at line 696 of file reg_bank.test.cc.

References gem5::VegaISA::r, gem5::X86ISA::reg, and gem5::VegaISA::v.


Generated on Sat Jun 18 2022 08:12:49 for gem5 by doxygen 1.8.17