Changeset 630 for trunk/platforms


Ignore:
Timestamp:
Feb 12, 2014, 1:40:48 PM (11 years ago)
Author:
alain
Message:

Integrating support for RAMDISK in tsar_generic_leti platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_leti/top.cpp

    r628 r630  
    185185//////////////////////i/////////////////////////////////////
    186186
    187 #if USE_GIET_VM
    188 #include "giet_vm/hard_config.h"
    189 #endif
    190 
    191 #if USE_GIET_TSAR
    192187#include "../../softs/soft_transpose_giet/hard_config.h"
    193 #endif
    194188
    195189////////////////////////////////////////////////////////////
     
    229223//////////////////////i/////////////////////////////////////
    230224
    231 #if USE_GIET_VM
    232 #define loader_args          "TBD"
    233 #endif
    234 
    235 #if USE_GIET_TSAR
    236 #define loader_args          "../../softs/soft_transpose_giet/bin.soft"
    237 #endif
     225#define elf_loader           "../../softs/soft_transpose_giet/bin.soft"
     226#define ramdisk_loader       "../../softs/soft_transpose_giet/images.raw@0x00800000:"
    238227
    239228////////////////////////////////////////////////////////////
     
    426415    std::cout << " - MAX_CYCLES       = " << ncycles << std::endl;
    427416    std::cout << " - RESET_ADDRESS    = " << RESET_ADDRESS << std::endl;
    428     std::cout << " - SOFT_FILENAME    = " << loader_args << std::endl;
     417    std::cout << " - SOFT_FILENAME    = " << elf_loader << std::endl;
     418    std::cout << " - RAMDISK_FILENAME = " << ramdisk_loader << std::endl;
    429419
    430420    std::cout << std::endl;
     
    668658   ////////////////////////////
    669659
    670    soclib::common::Loader loader( loader_args );
     660   soclib::common::Loader loader( elf_loader, ramdisk_loader );
     661
     662   ///////////////////////////
     663   //  processor iss
     664   ///////////////////////////
    671665
    672666   typedef soclib::common::GdbServer<soclib::common::Mips32ElIss> proc_iss;
    673    proc_iss::set_loader(loader);
     667   proc_iss::set_loader( loader );
    674668
    675669   ////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.