Skip to content

Commit

Permalink
Fix a compiler error with DEBUG_REMAP enabled (Thayne Harbaugh).
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3845 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
balrog committed Dec 24, 2007
1 parent 45d242b commit 06177d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion linux-user/qemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

#include "cpu.h"

#undef DEBUG_REMAP
#ifdef DEBUG_REMAP
#include <stdlib.h>
#endif /* DEBUG_REMAP */

#ifdef TARGET_ABI32
typedef uint32_t abi_ulong;
typedef int32_t abi_long;
Expand Down Expand Up @@ -370,7 +375,7 @@ static inline void unlock_user(void *host_ptr, abi_ulong guest_addr,
if (host_ptr == g2h(guest_addr))
return;
if (len > 0)
memcpy(g2h(guest_ptr), host_ptr, len);
memcpy(g2h(guest_addr), host_ptr, len);
free(host_ptr);
#endif
}
Expand Down

0 comments on commit 06177d3

Please sign in to comment.