tlb.hh (4997:e7380529bd2d) tlb.hh (5014:f9667cf03d3f)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 21 unchanged lines hidden (view full) ---

30
31#ifndef __ARCH_MIPS_TLB_HH__
32#define __ARCH_MIPS_TLB_HH__
33
34#include "sim/tlb.hh"
35
36namespace MipsISA
37{
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 21 unchanged lines hidden (view full) ---

30
31#ifndef __ARCH_MIPS_TLB_HH__
32#define __ARCH_MIPS_TLB_HH__
33
34#include "sim/tlb.hh"
35
36namespace MipsISA
37{
38 class ITB : public GenericITB
38 struct TlbEntry
39 {
39 {
40 Addr pageStart;
41 TlbEntry() {}
42 TlbEntry(Addr paddr) : pageStart(paddr) {}
43
44 void serialize(std::ostream &os);
45 void unserialize(Checkpoint *cp, const std::string &section);
46 };
47
48 class ITB : public GenericITB<>
49 {
40 public:
50 public:
41 ITB(const std::string &name) : GenericITB(name)
51 ITB(const std::string &name) : GenericITB<>(name)
42 {}
43 };
44
52 {}
53 };
54
45 class DTB : public GenericDTB
55 class DTB : public GenericDTB<>
46 {
47 public:
56 {
57 public:
48 DTB(const std::string &name) : GenericDTB(name)
58 DTB(const std::string &name) : GenericDTB<>(name)
49 {}
50 };
51};
52
53#endif // __ARCH_MIPS_TLB_HH__
59 {}
60 };
61};
62
63#endif // __ARCH_MIPS_TLB_HH__