Deleted Added
sdiff udiff text old ( 4997:e7380529bd2d ) new ( 5004:7d94cedab264 )
full compact
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 *
55 * Authors: Gabe Black
56 */
57
58#ifndef __ARCH_X86_TLB_HH__
59#define __ARCH_X86_TLB_HH__
60
61#include <iostream>
62#include <string>
63
64#include "sim/host.hh"
65#include "sim/tlb.hh"
66
67class Checkpoint;
68
69namespace X86ISA
70{
71 struct TlbEntry
72 {
73 Addr pageStart;
74 TlbEntry() {}
75 TlbEntry(Addr paddr) : pageStart(paddr) {}
76
77 void serialize(std::ostream &os);
78 void unserialize(Checkpoint *cp, const std::string &section);
79 };
80
81 class ITB : public GenericITB<false, false>
82 {
83 public:
84 ITB(const std::string &name) : GenericITB<false, false>(name)
85 {}
86 };
87
88 class DTB : public GenericDTB<false, false>
89 {
90 public:
91 DTB(const std::string &name) : GenericDTB<false, false>(name)
92 {}
93 };
94};
95
96#endif // __ARCH_X86_TLB_HH__