From: Thayne Harbaugh <thayne@c2.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [BUG][PATCH] DEBUG_REMAP
Date: Wed, 19 Dec 2007 07:45:02 -0700 [thread overview]
Message-ID: <1198075502.17701.2.camel@phantasm.home.enterpriseandprosperity.com> (raw)
[-- 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
}
reply other threads:[~2007-12-19 14:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1198075502.17701.2.camel@phantasm.home.enterpriseandprosperity.com \
--to=thayne@c2.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).