ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
Loading...
Searching...
No Matches
PTEFormat.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// This file is part of ETISS. It is licensed under the BSD 3-Clause License; you may not use this file except in
4// compliance with the License. You should have received a copy of the license along with this project. If not, see the
5// LICENSE file.
6
7#ifndef ETISS_INCLUDE_MM_PTEFORMAT_H_
8#define ETISS_INCLUDE_MM_PTEFORMAT_H_
9#include <iostream>
10#include <map>
11#include <memory>
12#include <string>
13
14#include <cstdint>
15
16namespace etiss
17{
18namespace mm
19{
20
26typedef std::map<std::string, std::pair<uint32_t, uint32_t>> PTEFormatMap;
27
29{
30 public:
35 {
36 static std::shared_ptr<PTEFormat> instance = std::shared_ptr<PTEFormat>(new PTEFormat());
37 return *instance;
38 }
39
45 void AddBitField(std::string name, uint32_t begin, uint32_t end);
46
50 void DumpBitFild(std::string name);
51
55 void Dump();
56
57 uint32_t GetPTELength() const { return pte_len_; }
58
60
61 private:
65};
66
67} // namespace mm
68} // namespace etiss
69
70#endif
static __inline__ uint32_t
Definition arm_cde.h:25
static PTEFormat & Instance()
Get the singleton instance.
Definition PTEFormat.h:34
uint32_t GetPTELength() const
Definition PTEFormat.h:57
void DumpBitFild(std::string name)
Dump the details of the bit field according to given name.
Definition PTEFormat.cpp:28
PTEFormatMap & GetFormatMap()
Definition PTEFormat.h:59
void Dump()
Dump the details of the whole PTE format.
Definition PTEFormat.cpp:43
void AddBitField(std::string name, uint32_t begin, uint32_t end)
Called only by PTEFormatBuilder.
Definition PTEFormat.cpp:19
PTEFormatMap format_map_
Definition PTEFormat.h:63
std::map< std::string, std::pair< uint32_t, uint32_t > > PTEFormatMap
Singleton to represent specific PTE format, every PTE uses this singleton to parse raw PTE value into...
Definition PTEFormat.h:26
forwards: include/jit/*
Definition Benchmark.h:17