All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, agraf@suse.de
Subject: Re: [Qemu-devel] [PATCH] target/ppc: Fix return value in tcg radix mmu fault handler
Date: Wed, 14 Jun 2017 14:52:13 +0800	[thread overview]
Message-ID: <20170614065213.GH13420@umbus> (raw)
In-Reply-To: <20170614064452.23167-1-sjitindarsingh@gmail.com>

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

On Wed, Jun 14, 2017 at 04:44:52PM +1000, Suraj Jitindar Singh wrote:
> The mmu fault handler should return 0 if it was able to successfully
> handle the fault and a positive value otherwise.
> 
> Currently the tcg radix mmu fault handler will return 1 after
> successfully handling a fault in virtual mode. This is incorrect
> so fix it so that it returns 0 in this case.
> 
> The handler already correctly returns 0 when a fault was handled
> in real mode and 1 if an interrupt was generated.
> 
> Fixes: d5fee0bbe68d ("target/ppc: Implement ISA V3.00 radix page fault handler")
> 
> Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>

Applied to ppc-for-2.10, thanks.

> ---
>  target/ppc/mmu-radix64.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/ppc/mmu-radix64.c b/target/ppc/mmu-radix64.c
> index de18c0b..69fde65 100644
> --- a/target/ppc/mmu-radix64.c
> +++ b/target/ppc/mmu-radix64.c
> @@ -255,5 +255,5 @@ int ppc_radix64_handle_mmu_fault(PowerPCCPU *cpu, vaddr eaddr, int rwx,
>  
>      tlb_set_page(cs, eaddr & TARGET_PAGE_MASK, raddr & TARGET_PAGE_MASK,
>                   prot, mmu_idx, 1UL << page_size);
> -    return 1;
> +    return 0;
>  }

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2017-06-14  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14  6:44 [Qemu-devel] [PATCH] target/ppc: Fix return value in tcg radix mmu fault handler Suraj Jitindar Singh
2017-06-14  6:52 ` David Gibson [this message]
2017-06-14  6:58 ` no-reply
2017-06-14  7:17   ` Fam Zheng

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=20170614065213.GH13420@umbus \
    --to=david@gibson.dropbear.id.au \
    --cc=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=sjitindarsingh@gmail.com \
    /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.