Changeset 238 for soft/giet_vm/memo/src/pseg_handler.cpp
- Timestamp:
- May 29, 2013, 1:24:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/memo/src/pseg_handler.cpp
r163 r238 1 1 /* -*- c++ -*- 2 2 * 3 * SOCLIB_LGPL_HEADER_BEGIN3 * GIET_VM_LGPL_HEADER_BEGIN 4 4 * 5 * This file is part of SoCLib, GNU LGPLv2.1.5 * This file is part of GIET_VM, GNU LGPLv2.1. 6 6 * 7 * SoCLibis free software; you can redistribute it and/or modify it7 * GIET_VM is free software; you can redistribute it and/or modify it 8 8 * under the terms of the GNU Lesser General Public License as published 9 9 * by the Free Software Foundation; version 2.1 of the License. 10 10 * 11 * SoCLibis distributed in the hope that it will be useful, but11 * GIET_VM is distributed in the hope that it will be useful, but 12 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU … … 15 15 * 16 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with SoCLib; if not, write to the Free Software17 * License along with GIET_VM; if not, write to the Free Software 18 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 19 * 02110-1301 USA 20 20 * 21 * SOCLIB_LGPL_HEADER_END21 * GIET_VM_LGPL_HEADER_END 22 22 * 23 23 * Copyright (c) UPMC, Lip6, SoC … … 37 37 #include "exception.h" 38 38 39 40 41 39 /* 42 40 * PSegHandler 43 41 */ 44 42 43 ///////////////////////////////////// 45 44 PSeg& PSegHandler::get( size_t pos ) 46 45 { … … 55 54 } 56 55 56 ////////////////////////////////////////////////////////////// 57 57 const PSeg& PSegHandler::getByAddr(uintptr_t segAddress) const 58 58 { … … 60 60 for(it = m_pSegs.begin(); it < m_pSegs.end(); it++) 61 61 { 62 uintptr_t lma = (*it).lma();62 paddr_t lma = (*it).lma(); 63 63 if( lma == segAddress ) 64 64 return *it; … … 71 71 } 72 72 73 /////////////////////////////// 73 74 void PSegHandler::check() const 74 75 {
Note: See TracChangeset
for help on using the changeset viewer.