Changeset 173 for soft/giet_vm/xml


Ignore:
Timestamp:
Jul 18, 2012, 4:59:19 PM (12 years ago)
Author:
karaoui
Message:

Adding BLOB type for vobj.
Don't forget to set as BLOB type the mapping_info vobj in the xml.

Location:
soft/giet_vm/xml
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/xml/mapping_info.h

    r167 r173  
    5555#define OUT_MAPPING_SIGNATURE   0xBABEF00D
    5656
    57 enum 
     57enum
    5858{
    59     VOBJ_TYPE_ELF     = 0,     // loadable code object
    60     VOBJ_TYPE_PTAB    = 1,     // page table
    61     VOBJ_TYPE_PERI    = 2,     // hardware component
    62     VOBJ_TYPE_MWMR    = 3,     // MWMR channel
    63     VOBJ_TYPE_LOCK    = 4,     // Lock
    64     VOBJ_TYPE_BUFFER  = 5,     // Any "no intialiasation needed" objects (stacks...)
    65     VOBJ_TYPE_BARRIER = 6,     // Barrier
     59    VOBJ_TYPE_ELF     = 0,     // loadable code/data object of elf files
     60    VOBJ_TYPE_BLOB    = 1,     // loadable blob object
     61    VOBJ_TYPE_PTAB    = 2,     // page table
     62    VOBJ_TYPE_PERI    = 3,     // hardware component
     63    VOBJ_TYPE_MWMR    = 4,     // MWMR channel
     64    VOBJ_TYPE_LOCK    = 5,     // Lock
     65    VOBJ_TYPE_BUFFER  = 6,     // Any "no intialiasation needed" objects (stacks...)
     66    VOBJ_TYPE_BARRIER = 7,     // Barrier
    6667};
    6768
  • soft/giet_vm/xml/xml_driver.c

    r165 r173  
    2525    {
    2626        "ELF",
     27        "BLOB",
    2728        "PTAB",   //page table
    2829        "PERI",   //hardware component
  • soft/giet_vm/xml/xml_parser.c

    r167 r173  
    380380        }
    381381    }
     382    else if (ok && (strcmp(str, "BLOB")    == 0)) vobj[vobj_index]->type = VOBJ_TYPE_BLOB;
    382383    else if (ok && (strcmp(str, "PTAB")    == 0)) vobj[vobj_index]->type = VOBJ_TYPE_PTAB;
    383384    else if (ok && (strcmp(str, "PERI")    == 0)) vobj[vobj_index]->type = VOBJ_TYPE_PERI;
Note: See TracChangeset for help on using the changeset viewer.