Revision 06177d36 linux-user/qemu.h
b/linux-user/qemu.h | ||
---|---|---|
6 | 6 |
|
7 | 7 |
#include "cpu.h" |
8 | 8 |
|
9 |
#undef DEBUG_REMAP |
|
10 |
#ifdef DEBUG_REMAP |
|
11 |
#include <stdlib.h> |
|
12 |
#endif /* DEBUG_REMAP */ |
|
13 |
|
|
9 | 14 |
#ifdef TARGET_ABI32 |
10 | 15 |
typedef uint32_t abi_ulong; |
11 | 16 |
typedef int32_t abi_long; |
... | ... | |
370 | 375 |
if (host_ptr == g2h(guest_addr)) |
371 | 376 |
return; |
372 | 377 |
if (len > 0) |
373 |
memcpy(g2h(guest_ptr), host_ptr, len);
|
|
378 |
memcpy(g2h(guest_addr), host_ptr, len);
|
|
374 | 379 |
free(host_ptr); |
375 | 380 |
#endif |
376 | 381 |
} |
Also available in: Unified diff