From: Paolo Bonzini <pbonzini@redhat.com>
To: Amos Kong <akong@redhat.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
peter.maydell@linaro.org, qemu-devel@nongnu.org,
anthony@codemonkey.ws
Subject: Re: [Qemu-trivial] [PATCH] exec: cleanup DEBUG_SUBPAGE
Date: Fri, 27 Sep 2013 09:28:33 +0200 [thread overview]
Message-ID: <524533A1.6030305@redhat.com> (raw)
In-Reply-To: <1380245138-9716-1-git-send-email-akong@redhat.com>
Michael, want to pick this up for -trivial?
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Il 27/09/2013 03:25, Amos Kong ha scritto:
> Touched some error after enabling DEBUG_SUBPAGE.
>
> Signed-off-by: Amos Kong <akong@redhat.com>
> ---
> exec.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/exec.c b/exec.c
> index 07aa2c6..5aef833 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -1573,7 +1573,7 @@ static uint64_t subpage_read(void *opaque, hwaddr addr,
> uint8_t buf[4];
>
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: subpage %p len %d addr " TARGET_FMT_plx "\n", __func__,
> + printf("%s: subpage %p len %u addr " TARGET_FMT_plx "\n", __func__,
> subpage, len, addr);
> #endif
> address_space_read(subpage->as, addr + subpage->base, buf, len);
> @@ -1596,7 +1596,7 @@ static void subpage_write(void *opaque, hwaddr addr,
> uint8_t buf[4];
>
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: subpage %p len %d addr " TARGET_FMT_plx
> + printf("%s: subpage %p len %u addr " TARGET_FMT_plx
> " value %"PRIx64"\n",
> __func__, subpage, len, addr, value);
> #endif
> @@ -1617,16 +1617,16 @@ static void subpage_write(void *opaque, hwaddr addr,
> }
>
> static bool subpage_accepts(void *opaque, hwaddr addr,
> - unsigned size, bool is_write)
> + unsigned len, bool is_write)
> {
> subpage_t *subpage = opaque;
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: subpage %p %c len %d addr " TARGET_FMT_plx "\n",
> + printf("%s: subpage %p %c len %u addr " TARGET_FMT_plx "\n",
> __func__, subpage, is_write ? 'w' : 'r', len, addr);
> #endif
>
> return address_space_access_valid(subpage->as, addr + subpage->base,
> - size, is_write);
> + len, is_write);
> }
>
> static const MemoryRegionOps subpage_ops = {
> @@ -1646,8 +1646,8 @@ static int subpage_register (subpage_t *mmio, uint32_t start, uint32_t end,
> idx = SUBPAGE_IDX(start);
> eidx = SUBPAGE_IDX(end);
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: %p start %08x end %08x idx %08x eidx %08x mem %ld\n", __func__,
> - mmio, start, end, idx, eidx, memory);
> + printf("%s: %p start %08x end %08x idx %08x eidx %08x section %d\n",
> + __func__, mmio, start, end, idx, eidx, section);
> #endif
> for (; idx <= eidx; idx++) {
> mmio->sub_section[idx] = section;
> @@ -1668,8 +1668,8 @@ static subpage_t *subpage_init(AddressSpace *as, hwaddr base)
> "subpage", TARGET_PAGE_SIZE);
> mmio->iomem.subpage = true;
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: %p base " TARGET_FMT_plx " len %08x %d\n", __func__,
> - mmio, base, TARGET_PAGE_SIZE, subpage_memory);
> + printf("%s: %p base " TARGET_FMT_plx " len %08x\n", __func__,
> + mmio, base, TARGET_PAGE_SIZE);
> #endif
> subpage_register(mmio, 0, TARGET_PAGE_SIZE-1, PHYS_SECTION_UNASSIGNED);
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Amos Kong <akong@redhat.com>
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
peter.maydell@linaro.org, qemu-devel@nongnu.org,
anthony@codemonkey.ws
Subject: Re: [Qemu-devel] [PATCH] exec: cleanup DEBUG_SUBPAGE
Date: Fri, 27 Sep 2013 09:28:33 +0200 [thread overview]
Message-ID: <524533A1.6030305@redhat.com> (raw)
In-Reply-To: <1380245138-9716-1-git-send-email-akong@redhat.com>
Michael, want to pick this up for -trivial?
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Il 27/09/2013 03:25, Amos Kong ha scritto:
> Touched some error after enabling DEBUG_SUBPAGE.
>
> Signed-off-by: Amos Kong <akong@redhat.com>
> ---
> exec.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/exec.c b/exec.c
> index 07aa2c6..5aef833 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -1573,7 +1573,7 @@ static uint64_t subpage_read(void *opaque, hwaddr addr,
> uint8_t buf[4];
>
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: subpage %p len %d addr " TARGET_FMT_plx "\n", __func__,
> + printf("%s: subpage %p len %u addr " TARGET_FMT_plx "\n", __func__,
> subpage, len, addr);
> #endif
> address_space_read(subpage->as, addr + subpage->base, buf, len);
> @@ -1596,7 +1596,7 @@ static void subpage_write(void *opaque, hwaddr addr,
> uint8_t buf[4];
>
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: subpage %p len %d addr " TARGET_FMT_plx
> + printf("%s: subpage %p len %u addr " TARGET_FMT_plx
> " value %"PRIx64"\n",
> __func__, subpage, len, addr, value);
> #endif
> @@ -1617,16 +1617,16 @@ static void subpage_write(void *opaque, hwaddr addr,
> }
>
> static bool subpage_accepts(void *opaque, hwaddr addr,
> - unsigned size, bool is_write)
> + unsigned len, bool is_write)
> {
> subpage_t *subpage = opaque;
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: subpage %p %c len %d addr " TARGET_FMT_plx "\n",
> + printf("%s: subpage %p %c len %u addr " TARGET_FMT_plx "\n",
> __func__, subpage, is_write ? 'w' : 'r', len, addr);
> #endif
>
> return address_space_access_valid(subpage->as, addr + subpage->base,
> - size, is_write);
> + len, is_write);
> }
>
> static const MemoryRegionOps subpage_ops = {
> @@ -1646,8 +1646,8 @@ static int subpage_register (subpage_t *mmio, uint32_t start, uint32_t end,
> idx = SUBPAGE_IDX(start);
> eidx = SUBPAGE_IDX(end);
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: %p start %08x end %08x idx %08x eidx %08x mem %ld\n", __func__,
> - mmio, start, end, idx, eidx, memory);
> + printf("%s: %p start %08x end %08x idx %08x eidx %08x section %d\n",
> + __func__, mmio, start, end, idx, eidx, section);
> #endif
> for (; idx <= eidx; idx++) {
> mmio->sub_section[idx] = section;
> @@ -1668,8 +1668,8 @@ static subpage_t *subpage_init(AddressSpace *as, hwaddr base)
> "subpage", TARGET_PAGE_SIZE);
> mmio->iomem.subpage = true;
> #if defined(DEBUG_SUBPAGE)
> - printf("%s: %p base " TARGET_FMT_plx " len %08x %d\n", __func__,
> - mmio, base, TARGET_PAGE_SIZE, subpage_memory);
> + printf("%s: %p base " TARGET_FMT_plx " len %08x\n", __func__,
> + mmio, base, TARGET_PAGE_SIZE);
> #endif
> subpage_register(mmio, 0, TARGET_PAGE_SIZE-1, PHYS_SECTION_UNASSIGNED);
>
>
next prev parent reply other threads:[~2013-09-27 7:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 1:25 [Qemu-devel] [PATCH] exec: cleanup DEBUG_SUBPAGE Amos Kong
2013-09-27 7:28 ` Paolo Bonzini [this message]
2013-09-27 7:28 ` Paolo Bonzini
2013-09-29 19:40 ` [Qemu-trivial] " Michael Tokarev
2013-09-29 19:40 ` [Qemu-devel] " Michael Tokarev
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=524533A1.6030305@redhat.com \
--to=pbonzini@redhat.com \
--cc=akong@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.