pagetable_walker.cc (5736:426510e758ad) | pagetable_walker.cc (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 * --- 305 unchanged lines hidden (view full) --- 314 } else { 315 write = NULL; 316 delete oldRead->req; 317 delete oldRead; 318 } 319} 320 321void | 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 * --- 305 unchanged lines hidden (view full) --- 314 } else { 315 write = NULL; 316 delete oldRead->req; 317 delete oldRead; 318 } 319} 320 321void |
322Walker::start(ThreadContext * _tc, Addr vaddr) | 322Walker::start(ThreadContext * _tc, Addr vaddr, bool _write, bool _execute) |
323{ 324 assert(state == Ready); 325 assert(!tc); 326 tc = _tc; | 323{ 324 assert(state == Ready); 325 assert(!tc); 326 tc = _tc; |
327 execute = _execute; 328 write = _write; |
|
327 328 VAddr addr = vaddr; 329 330 //Figure out what we're doing. 331 CR3 cr3 = tc->readMiscRegNoEffect(MISCREG_CR3); 332 Addr top = 0; 333 // Check if we're in long mode or not 334 Efer efer = tc->readMiscRegNoEffect(MISCREG_EFER); --- 198 unchanged lines hidden --- | 329 330 VAddr addr = vaddr; 331 332 //Figure out what we're doing. 333 CR3 cr3 = tc->readMiscRegNoEffect(MISCREG_CR3); 334 Addr top = 0; 335 // Check if we're in long mode or not 336 Efer efer = tc->readMiscRegNoEffect(MISCREG_EFER); --- 198 unchanged lines hidden --- |