|
gem5 [DEVELOP-FOR-25.0]
|
#include <functional>#include <iostream>#include <type_traits>#include <typeinfo>#include "base/bitfield.hh"#include "base/compiler.hh"#include "sim/serialize_handlers.hh"Go to the source code of this file.
Namespaces | |
| namespace | gem5 |
| Copyright (c) 2024 Arm Limited All rights reserved. | |
| namespace | gem5::bitfield_backend |
| namespace | std |
| Overload hash function for BasicBlockRange type. | |
Macros | |
| #define | __BitUnion(type, name) |
| #define | EndBitUnion(name) |
| This closes off the class and union started by the above macro. | |
| #define | __SubBitUnion(name, fieldType, ...) |
| #define | EndSubBitUnion(name) |
| This closes off the union created above and gives it a name. | |
| #define | SubBitUnion(name, first, last) |
| Regular bitfields These define macros for read/write regular bitfield based subbitfields. | |
| #define | SignedSubBitUnion(name, first, last) |
| Regular bitfields These define macros for read/write regular bitfield based subbitfields. | |
| #define | BitUnion(type, name) |
| Use this to define an arbitrary type overlayed with bitfields. | |
| #define | BitUnion64(name) |
| Use this to define conveniently sized values overlayed with bitfields. | |
| #define | BitUnion32(name) |
| #define | BitUnion16(name) |
| #define | BitUnion8(name) |
Typedefs | |
| template<typename T> | |
| using | gem5::BitUnionType = bitfield_backend::BitUnionOperators<T> |
| template<typename T> | |
| using | gem5::BitUnionBaseType = typename bitfield_backend::BitUnionBaseType<T>::Type |
Functions | |
| template<typename T> | |
| static std::ostream & | gem5::bitfield_backend::bitfieldBackendPrinter (std::ostream &os, const T &t) |
| template<> | |
| std::ostream & | gem5::bitfield_backend::bitfieldBackendPrinter (std::ostream &os, const char &t) |
| template<> | |
| std::ostream & | gem5::bitfield_backend::bitfieldBackendPrinter (std::ostream &os, const unsigned char &t) |
| template<typename T> | |
| std::ostream & | gem5::operator<< (std::ostream &os, const BitUnionType< T > &bu) |
| A default << operator which casts a bitunion to its underlying type and passes it to bitfield_backend::bitfieldBackendPrinter. | |
| #define __BitUnion | ( | type, | |
| name ) |
Definition at line 405 of file bitunion.hh.
| #define __SubBitUnion | ( | name, | |
| fieldType, | |||
| ... ) |
Definition at line 439 of file bitunion.hh.
| #define BitUnion16 | ( | name | ) |
Definition at line 496 of file bitunion.hh.
| #define BitUnion32 | ( | name | ) |
Definition at line 495 of file bitunion.hh.
Referenced by gem5::SparcISA::SparcStaticInst::passesCondition().
| #define BitUnion8 | ( | name | ) |
Definition at line 497 of file bitunion.hh.