- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Sim2OS/src/Sim2OS_convert_address.cpp
r81 r88 9 9 void * Sim2OS::convert_address (void * address) 10 10 { 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))); 12 12 13 13 if (result == NULL) 14 14 { 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; 16 16 exit(0); 17 17 }
Note: See TracChangeset
for help on using the changeset viewer.