Ignore:
Timestamp:
Aug 21, 2012, 9:30:46 AM (12 years ago)
Author:
karaoui
Message:

Avoid incremmentinting Pseg of "PERI" type, to permit multiple mapping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/memo/src/memo.cpp

    r195 r210  
    507507    vSO->m_ident = vseg->ident;
    508508
    509     //set the lma
    510     if ( vseg->ident != 0 )            // identity mapping required
    511         ps->addIdent( *vSO );
    512     else
    513         ps->add( *vSO );
    514 
     509    //should we check that we have the same type for the pseg and vobj?
     510    if(ps->type() != VOBJ_TYPE_PERI)//take into acount only vseg who are not of the peri type
     511    {
     512        //set the lma
     513        if ( vseg->ident != 0 )            // identity mapping required
     514            ps->addIdent( *vSO );
     515        else
     516            ps->add( *vSO );
     517    }
    515518    if(!sect)
    516519        return;
     
    559562            //build pseg
    560563            std::string name(pseg[pseg_id].name);
    561             PSeg *ps = new PSeg(name, pseg[pseg_id].base, pseg[pseg_id].length);
     564            PSeg *ps = new PSeg(name, pseg[pseg_id].base, pseg[pseg_id].length, pseg[pseg_id].type);
    562565
    563566#ifdef DISTRIBUTED_SCHEDULERS
     
    567570                found  = 1;
    568571            }
     572            if(!found){/* we could imagine a cluster without proc, let the giet choose*/ }
    569573#endif
    570574            m_psegh.m_pSegs.push_back(*ps);
Note: See TracChangeset for help on using the changeset viewer.