tlb.hh (4997:e7380529bd2d) | tlb.hh (5004:7d94cedab264) |
---|---|
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 | 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" |
|
61#include "sim/tlb.hh" 62 | 65#include "sim/tlb.hh" 66 |
67class Checkpoint; 68 |
|
63namespace X86ISA 64{ | 69namespace X86ISA 70{ |
65 class ITB : public GenericITB | 71 struct TlbEntry |
66 { | 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 §ion); 79 }; 80 81 class ITB : public GenericITB<false, false> 82 { |
|
67 public: | 83 public: |
68 ITB(const std::string &name) : GenericITB(name) | 84 ITB(const std::string &name) : GenericITB<false, false>(name) |
69 {} 70 }; 71 | 85 {} 86 }; 87 |
72 class DTB : public GenericDTB | 88 class DTB : public GenericDTB<false, false> |
73 { 74 public: | 89 { 90 public: |
75 DTB(const std::string &name) : GenericDTB(name) | 91 DTB(const std::string &name) : GenericDTB<false, false>(name) |
76 {} 77 }; 78}; 79 80#endif // __ARCH_X86_TLB_HH__ | 92 {} 93 }; 94}; 95 96#endif // __ARCH_X86_TLB_HH__ |