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