- 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_service_read.cpp
r81 r88 12 12 } 13 13 14 int fd = (int) arguments[1];14 int fd = static_cast<int>(reinterpret_cast<int64_t>(arguments[1])); 15 15 void * buf = (void *) convert_address(arguments[2]); 16 16 ssize_t count = (ssize_t) arguments[3]; … … 19 19 std::cout << "\n\t***** service : read *****" << std::endl; 20 20 std::cout << "\tfd : " << (unsigned int) fd << std::endl; 21 std::cout << "\tbuf : " << std::hex << (unsigned int) buf<< std::endl;21 std::cout << "\tbuf : " << std::hex << static_cast<int32_t>(reinterpret_cast<int64_t>(buf)) << std::endl; 22 22 //std::cout << "\tbuf : " << std::dec << (char *) buf << std::endl; 23 23 std::cout << "\tcount : " << std::dec << (unsigned int) count << std::endl; 24 std::cout << "\tresult : " << (unsigned int) result<< std::endl;24 std::cout << "\tresult : " << static_cast<int32_t>(reinterpret_cast<int64_t>(result)) << std::endl; 25 25 std::cout << "\terrno : " << (unsigned int) error << std::endl; 26 26
Note: See TracChangeset
for help on using the changeset viewer.