MIPS: Fixes to get mips to compile.
--HG-- extra : convert_revision : 23561eda853a51046ae56c23a88466230c3e83f2
This commit is contained in:
@@ -35,6 +35,17 @@
|
||||
#include "params/MipsITB.hh"
|
||||
|
||||
namespace MipsISA {
|
||||
void
|
||||
TlbEntry::serialize(std::ostream &os)
|
||||
{
|
||||
SERIALIZE_SCALAR(pageStart);
|
||||
}
|
||||
|
||||
void
|
||||
TlbEntry::unserialize(Checkpoint *cp, const std::string §ion)
|
||||
{
|
||||
UNSERIALIZE_SCALAR(pageStart);
|
||||
}
|
||||
};
|
||||
|
||||
MipsISA::ITB *
|
||||
|
||||
@@ -35,17 +35,27 @@
|
||||
|
||||
namespace MipsISA
|
||||
{
|
||||
class ITB : public GenericITB
|
||||
struct TlbEntry
|
||||
{
|
||||
Addr pageStart;
|
||||
TlbEntry() {}
|
||||
TlbEntry(Addr paddr) : pageStart(paddr) {}
|
||||
|
||||
void serialize(std::ostream &os);
|
||||
void unserialize(Checkpoint *cp, const std::string §ion);
|
||||
};
|
||||
|
||||
class ITB : public GenericITB<>
|
||||
{
|
||||
public:
|
||||
ITB(const std::string &name) : GenericITB(name)
|
||||
ITB(const std::string &name) : GenericITB<>(name)
|
||||
{}
|
||||
};
|
||||
|
||||
class DTB : public GenericDTB
|
||||
class DTB : public GenericDTB<>
|
||||
{
|
||||
public:
|
||||
DTB(const std::string &name) : GenericDTB(name)
|
||||
DTB(const std::string &name) : GenericDTB<>(name)
|
||||
{}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifndef __ARCH_MIPS_TYPES_HH__
|
||||
#define __ARCH_MIPS_TYPES_HH__
|
||||
|
||||
#include "mem/types.hh"
|
||||
#include "sim/host.hh"
|
||||
|
||||
namespace MipsISA
|
||||
@@ -96,8 +95,6 @@ namespace MipsISA
|
||||
RND_NEAREST
|
||||
};
|
||||
|
||||
typedef ::PageTable<> PageTable;
|
||||
|
||||
} // namespace MipsISA
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user