pagetable_walker.hh (5245:d94bb8af9f76) pagetable_walker.hh (5881:73c0aaaaf186)
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 *

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

90 // should be NULL. When the function returns, read is either NULL
91 // if the machine is finished, or points to a packet to initiate
92 // the next read. If any write is required to update an "accessed"
93 // bit, write will point to a packet to do the write. Otherwise it
94 // will be NULL.
95 void doNext(PacketPtr &read, PacketPtr &write);
96
97 // Kick off the state machine.
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 *

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

90 // should be NULL. When the function returns, read is either NULL
91 // if the machine is finished, or points to a packet to initiate
92 // the next read. If any write is required to update an "accessed"
93 // bit, write will point to a packet to do the write. Otherwise it
94 // will be NULL.
95 void doNext(PacketPtr &read, PacketPtr &write);
96
97 // Kick off the state machine.
98 void start(ThreadContext * _tc, Addr vaddr);
98 void start(ThreadContext * _tc, Addr vaddr, bool write, bool execute);
99
100 protected:
101
102 /*
103 * State having to do with sending packets.
104 */
105 PacketPtr read;
106 std::vector<PacketPtr> writes;

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

160 /*
161 * State machine state.
162 */
163 ThreadContext * tc;
164 State state;
165 State nextState;
166 int size;
167 bool enableNX;
99
100 protected:
101
102 /*
103 * State having to do with sending packets.
104 */
105 PacketPtr read;
106 std::vector<PacketPtr> writes;

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

160 /*
161 * State machine state.
162 */
163 ThreadContext * tc;
164 State state;
165 State nextState;
166 int size;
167 bool enableNX;
168 bool write, execute;
168 TlbEntry entry;
169 TlbEntry entry;
170
171 Fault pageFault(bool present);
169
170 public:
171
172 void setTLB(TLB * _tlb)
173 {
174 tlb = _tlb;
175 }
176

--- 13 unchanged lines hidden ---
172
173 public:
174
175 void setTLB(TLB * _tlb)
176 {
177 tlb = _tlb;
178 }
179

--- 13 unchanged lines hidden ---