All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: "Hervé Poussineau" <hpoussin@reactos.org>
Cc: qemu-trivial@nongnu.org, Blue Swirl <blauwirbel@gmail.com>,
	qemu-devel@nongnu.org, Avi Kivity <avi@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH] cputlb: fix debug logs
Date: Wed, 05 Jun 2013 23:51:33 +0400	[thread overview]
Message-ID: <51AF96C5.5000507@msgid.tls.msk.ru> (raw)
In-Reply-To: <1370434603-5394-1-git-send-email-hpoussin@reactos.org>

05.06.2013 16:16, Hervé Poussineau wrote:
> 'pd' variable has been removed in 06ef3525e1f271b6a842781a05eace5cf63b95c2.

It's been removed indeed, but the value has been replaced by using
a MemoryRegionSection instead.  I understand current code is wrong
when DEBUG_TLB is #defined, but I think it is also wrong to just
remove this value in printf.  The question is whenever this debugging
is useful now, and whenever this now-missing value is interesting
for that and should be provided by other means.  Maybe we may just
remove whole thing here and everywhere.

Cc'ing authors.

While this patch looks really trivial, it is something which is of
use by the subsystem maintainer(s) at their disposal.

Thanks,

/mjt

> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
>  cputlb.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cputlb.c b/cputlb.c
> index 86666c8..1230e9e 100644
> --- a/cputlb.c
> +++ b/cputlb.c
> @@ -262,8 +262,8 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr,
>  
>  #if defined(DEBUG_TLB)
>      printf("tlb_set_page: vaddr=" TARGET_FMT_lx " paddr=0x" TARGET_FMT_plx
> -           " prot=%x idx=%d pd=0x%08lx\n",
> -           vaddr, paddr, prot, mmu_idx, pd);
> +           " prot=%x idx=%d\n",
> +           vaddr, paddr, prot, mmu_idx);
>  #endif
>  
>      address = vaddr;
> 



WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: "Hervé Poussineau" <hpoussin@reactos.org>
Cc: qemu-trivial@nongnu.org, Blue Swirl <blauwirbel@gmail.com>,
	qemu-devel@nongnu.org, Avi Kivity <avi@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] cputlb: fix debug logs
Date: Wed, 05 Jun 2013 23:51:33 +0400	[thread overview]
Message-ID: <51AF96C5.5000507@msgid.tls.msk.ru> (raw)
In-Reply-To: <1370434603-5394-1-git-send-email-hpoussin@reactos.org>

05.06.2013 16:16, Hervé Poussineau wrote:
> 'pd' variable has been removed in 06ef3525e1f271b6a842781a05eace5cf63b95c2.

It's been removed indeed, but the value has been replaced by using
a MemoryRegionSection instead.  I understand current code is wrong
when DEBUG_TLB is #defined, but I think it is also wrong to just
remove this value in printf.  The question is whenever this debugging
is useful now, and whenever this now-missing value is interesting
for that and should be provided by other means.  Maybe we may just
remove whole thing here and everywhere.

Cc'ing authors.

While this patch looks really trivial, it is something which is of
use by the subsystem maintainer(s) at their disposal.

Thanks,

/mjt

> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
>  cputlb.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cputlb.c b/cputlb.c
> index 86666c8..1230e9e 100644
> --- a/cputlb.c
> +++ b/cputlb.c
> @@ -262,8 +262,8 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr,
>  
>  #if defined(DEBUG_TLB)
>      printf("tlb_set_page: vaddr=" TARGET_FMT_lx " paddr=0x" TARGET_FMT_plx
> -           " prot=%x idx=%d pd=0x%08lx\n",
> -           vaddr, paddr, prot, mmu_idx, pd);
> +           " prot=%x idx=%d\n",
> +           vaddr, paddr, prot, mmu_idx);
>  #endif
>  
>      address = vaddr;
> 

  reply	other threads:[~2013-06-05 19:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 12:16 [Qemu-trivial] [PATCH] cputlb: fix debug logs Hervé Poussineau
2013-06-05 12:16 ` [Qemu-devel] " Hervé Poussineau
2013-06-05 19:51 ` Michael Tokarev [this message]
2013-06-05 19:51   ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-06-14 14:11   ` [Qemu-trivial] [Qemu-devel] " Andreas Färber
2013-06-14 14:11     ` [Qemu-devel] [Qemu-trivial] " Andreas Färber
2013-06-14 10:16 ` Michael Tokarev
2013-06-14 10:16   ` [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=51AF96C5.5000507@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=avi@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=hpoussin@reactos.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.