Skip to content

Commit

Permalink
chores: remove useless code
Browse files Browse the repository at this point in the history
Some comments and the old ckpt system
  • Loading branch information
branylagaffe committed Oct 3, 2024
1 parent fb153f5 commit a7218b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
26 changes: 1 addition & 25 deletions components/MMU/MMUImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@
#include <core/performance/profile.hpp>
#include <core/qemu/configuration_api.hpp>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <vector>

#define DBG_DefineCategories MMU
#define DBG_SetDefaultOps AddCat(MMU)
Expand Down Expand Up @@ -64,16 +58,6 @@ class FLEXUS_COMPONENT(MMU)
struct TLBentry
{

friend class boost::serialization::access;

template<class Archive>
void serialize(Archive& ar, const unsigned int version)
{
ar & theRate;
ar & theVaddr;
ar & thePaddr;
}

TLBentry() {}

TLBentry(VirtualMemoryAddress aVAddress, PhysicalMemoryAddress aPaddress, uint64_t aRate)
Expand Down Expand Up @@ -105,15 +89,6 @@ class FLEXUS_COMPONENT(MMU)
struct TLB
{

friend class boost::serialization::access;

template<class Archive>
void serialize(Archive& ar, const unsigned int version)
{
ar & theTLB;
ar & theSize;
}

void loadState(json checkpoint)
{
size_t size = checkpoint["capacity"];
Expand Down Expand Up @@ -244,6 +219,7 @@ class FLEXUS_COMPONENT(MMU)
PAGEMASK = ~((1 << theMMU->Gran0->getlogKBSize()) - 1);
ret = true;
}

return ret;
}

Expand Down
22 changes: 0 additions & 22 deletions components/MMU/mmuRegisters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,5 @@ struct mmu_regs_t
mmu_reg_t ID_AA64MMFR0_EL1; // only implemented in EL1 as far as I know.
};

/* type - ARM_NAME - funct.
* ----DO NOT REMOVE---- PEOPLE WILL NEED TO KNOW THIS *
mmu_reg_t SCTLR_EL1; // enables/disables Secure EL1/EL0
translation mmu_reg_t SCTLR_EL2; // enables/disables
Non-Secure EL2 Stage 1, Non-Secure EL1/EL0 Stage 2 mmu_reg_t SCTLR_EL3; //
enables/disables Secure EL3 Stage 1
// all SCTLRs also include cacheability bits for PTEs
mmu_reg_t TCR_EL1; // controls Secure/NonSecure EL1/EL0
mmu_reg_t TCR_EL2; // controls Secure EL2Stg1 and
Non-Secure EL1/EL0 Stage 2 mmu_reg_t TCR_EL3; // controls
Secure EL3 Stage 1
mmu_reg_t TTBR0_EL1; // controls lower address range for
EL1 (default 0x0 - 0xffff ffff ffff), configurable through TCR_ELx.T0SZ
mmu_reg_t TTBR1_EL1; // upper address range for EL1, size
also configurable through TCR_ELx.T1SZ mmu_reg_t TTBR0_EL3; //
controls single address range for EL3 mmu_reg_t TTBR0_EL2; //
controls lower address range for EL2 (default 0x0 - 0xffff ffff ffff), config.
as above mmu_reg_t TTBR1_EL2; // upper address range for
EL2
* ----DO NOT REMOVE---- PEOPLE WILL NEED TO KNOW THIS */

#endif // FLEXUS_ARM_MMU_REGISTERS_HPP_INCLUDED

0 comments on commit a7218b9

Please sign in to comment.