qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [BUG][PATCH] DEBUG_REMAP
@ 2007-12-19 14:45 Thayne Harbaugh
  0 siblings, 0 replies; only message in thread
From: Thayne Harbaugh @ 2007-12-19 14:45 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

This fixes a compile error for a variable that wasn't changed (it was
previously renamed to make the variable more descriptive).  It also adds
"#include <stdlib>" for prototypes of malloc() and free().

[-- Attachment #2: 12_debug_remap.patch --]
[-- Type: text/x-patch, Size: 656 bytes --]

Index: qemu/linux-user/qemu.h
===================================================================
--- qemu.orig/linux-user/qemu.h	2007-12-18 09:11:41.000000000 -0700
+++ qemu/linux-user/qemu.h	2007-12-18 09:26:26.000000000 -0700
@@ -7,6 +7,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;
@@ -374,7 +379,7 @@
     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
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-19 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 14:45 [Qemu-devel] [BUG][PATCH] DEBUG_REMAP Thayne Harbaugh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).