tlb.hh (5357:eecb5fd0be62) | tlb.hh (5358:e9acb84bbafb) |
---|---|
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 * --- 56 unchanged lines hidden (view full) --- 65#include "arch/x86/pagetable.hh" 66#include "arch/x86/segmentregs.hh" 67#include "config/full_system.hh" 68#include "mem/mem_object.hh" 69#include "mem/request.hh" 70#include "params/X86DTB.hh" 71#include "params/X86ITB.hh" 72#include "sim/faults.hh" | 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 * --- 56 unchanged lines hidden (view full) --- 65#include "arch/x86/pagetable.hh" 66#include "arch/x86/segmentregs.hh" 67#include "config/full_system.hh" 68#include "mem/mem_object.hh" 69#include "mem/request.hh" 70#include "params/X86DTB.hh" 71#include "params/X86ITB.hh" 72#include "sim/faults.hh" |
73#include "sim/tlb.hh" |
|
73#include "sim/sim_object.hh" 74 75class ThreadContext; 76class Packet; 77 78namespace X86ISA 79{ 80 class Walker; 81 82 static const unsigned StoreCheck = 1 << NUM_SEGMENTREGS; 83 84 class TLB; 85 | 74#include "sim/sim_object.hh" 75 76class ThreadContext; 77class Packet; 78 79namespace X86ISA 80{ 81 class Walker; 82 83 static const unsigned StoreCheck = 1 << NUM_SEGMENTREGS; 84 85 class TLB; 86 |
86 class TLB : public SimObject | 87 class TLB : public BaseTLB |
87 { 88 protected: 89 friend class FakeITLBFault; 90 friend class FakeDTLBFault; 91 92 bool _allowNX; 93 uint32_t configAddress; 94 --- 20 unchanged lines hidden (view full) --- 115 void walk(ThreadContext * _tc, Addr vaddr); 116#endif 117 118 public: 119 void invalidateAll(); 120 121 void invalidateNonGlobal(); 122 | 88 { 89 protected: 90 friend class FakeITLBFault; 91 friend class FakeDTLBFault; 92 93 bool _allowNX; 94 uint32_t configAddress; 95 --- 20 unchanged lines hidden (view full) --- 116 void walk(ThreadContext * _tc, Addr vaddr); 117#endif 118 119 public: 120 void invalidateAll(); 121 122 void invalidateNonGlobal(); 123 |
123 void demapPage(Addr va); | 124 void demapPage(Addr va, uint64_t asn); |
124 125 protected: 126 int size; 127 128 TlbEntry * tlb; 129 130 typedef std::list<TlbEntry *> EntryList; 131 EntryList freeList; --- 50 unchanged lines hidden --- | 125 126 protected: 127 int size; 128 129 TlbEntry * tlb; 130 131 typedef std::list<TlbEntry *> EntryList; 132 EntryList freeList; --- 50 unchanged lines hidden --- |