Last change
on this file since 146 was
144,
checked in by rosiere, 14 years ago
|
1) compatible gcc 4.4.3
2) Translation file in MORPHEO_PREFIX directory
|
-
Property svn:keywords set to
Id
|
File size:
582 bytes
|
Rev | Line | |
---|
[81] | 1 | #include "../include/Sim2OS.h" |
---|
[144] | 2 | #include <stdlib.h> |
---|
[81] | 3 | |
---|
| 4 | namespace environment { |
---|
| 5 | namespace sim2os { |
---|
| 6 | |
---|
| 7 | /* |
---|
| 8 | * convert a address in the simulator on a address in OS |
---|
| 9 | */ |
---|
| 10 | void * Sim2OS::convert_address (void * address) |
---|
| 11 | { |
---|
[88] | 12 | void * result = param->segment_table->getAddrAlloc(static_cast<uint32_t>(reinterpret_cast<uint64_t>(address))); |
---|
[81] | 13 | |
---|
| 14 | if (result == NULL) |
---|
| 15 | { |
---|
[88] | 16 | std::cerr << "<" << name << "> address don't match : " << std::hex << static_cast<uint32_t>(reinterpret_cast<uint64_t>(address)) << std::dec << std::endl; |
---|
[81] | 17 | exit(0); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | return result; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | }; |
---|
| 24 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.