Changeset 935


Ignore:
Timestamp:
Jan 27, 2015, 5:58:10 PM (9 years ago)
Author:
cfuguet
Message:

reconf: the ELF file for the external ROM is now optional in the
tsar_generic_iob platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/top.cpp

    r926 r935  
    933933   //      Loader
    934934   ////////////////////////////
     935   soclib::common::Loader *loader;
    935936
    936937#if USE_ALMOS
    937    soclib::common::Loader loader(almos_bootloader_pathname,
    938                                  almos_archinfo_pathname,
    939                                  almos_kernel_pathname);
     938   loader = new soclib::common::Loader (almos_bootloader_pathname,
     939                                        almos_archinfo_pathname,
     940                                        almos_kernel_pathname);
    940941#else
    941    soclib::common::Loader loader(soft_name, dsoft_name);
     942   if (strcmp(soft_name, "") == 0)
     943   {
     944      loader = new soclib::common::Loader (dsoft_name);
     945   }
     946   else
     947   {
     948      loader = new soclib::common::Loader (soft_name, dsoft_name);
     949   }
    942950#endif
    943951
    944952   // initialize memory with a value different than 0 (expose software errors
    945953   // dues to uninitialized data)
    946    loader.memory_default(0xA0);
     954   loader->memory_default(0xA0);
    947955
    948956   typedef soclib::common::GdbServer<soclib::common::Mips32ElIss> proc_iss;
     
    10371045                                          IntTab(0, IOX_ROM_TGT_ID),
    10381046                                          maptab_iox,
    1039                                           loader,
     1047                                          *loader,
    10401048                                          X_WIDTH + Y_WIDTH );
    10411049
     
    11341142                distributed_boot,
    11351143
    1136                 loader,
     1144                *loader,
    11371145
    11381146                frozen_cycles,
Note: See TracChangeset for help on using the changeset viewer.