Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_convert_address.cpp

    r81 r88  
    99  void * Sim2OS::convert_address (void * address)
    1010  {
    11     void * result = param->segment_table->getAddrAlloc((uint32_t)address);
     11    void * result = param->segment_table->getAddrAlloc(static_cast<uint32_t>(reinterpret_cast<uint64_t>(address)));
    1212   
    1313    if (result == NULL)
    1414      {
    15         std::cerr << "<" << name << "> address don't match : " << std::hex << (uint32_t)(address) << std::dec << std::endl;
     15        std::cerr << "<" << name << "> address don't match : " << std::hex << static_cast<uint32_t>(reinterpret_cast<uint64_t>(address)) << std::dec << std::endl;
    1616        exit(0);
    1717      }
Note: See TracChangeset for help on using the changeset viewer.