From: David Gibson <david@gibson.dropbear.id.au>
To: Balbir Singh <bsingharora@gmail.com>
Cc: qemu-ppc@nongnu.org, Cedric Le Goater <clg@kaod.org>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] FU exceptions should carry a cause (IC)
Date: Fri, 11 Nov 2016 10:50:57 +1100 [thread overview]
Message-ID: <20161110235057.GE18868@umbus.fritz.box> (raw)
In-Reply-To: <fa23e494-320c-a4e6-8832-a9361b122558@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]
On Thu, Nov 10, 2016 at 03:37:31PM +1100, Balbir Singh wrote:
>
>
> As per the ISA we need a cause and executing a tabort r9 in libc
> for example causes a EXCP_FU exception, we don't wire up the
> IC (cause) when we post the exception. The cause is required
> for the kernel to do the right thing. The fix applies only to 64
> bit ppc targets.
>
> Signed-off-by: Balbir singh <bsingharora@gmail.com>
Applied to ppc-for-2.8.
> ---
> Changelog v2:
> Make the code 64 bit specific
>
> target-ppc/excp_helper.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c
> index 808760b..93369d4 100644
> --- a/target-ppc/excp_helper.c
> +++ b/target-ppc/excp_helper.c
> @@ -427,6 +427,9 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int excp_model, int excp)
> case POWERPC_EXCP_VPU: /* Vector unavailable exception */
> case POWERPC_EXCP_VSXU: /* VSX unavailable exception */
> case POWERPC_EXCP_FU: /* Facility unavailable exception */
> +#ifdef TARGET_PPC64
> + env->spr[SPR_FSCR] |= ((target_ulong)env->error_code << 56);
> +#endif
> break;
> case POWERPC_EXCP_PIT: /* Programmable interval timer interrupt */
> LOG_EXCP("PIT exception\n");
--
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 --]
prev parent reply other threads:[~2016-11-11 1:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-10 1:42 [Qemu-devel] [TRIVIAL][RFC][PATCH] FU exceptions should carry a cause (IC) Balbir Singh
2016-11-10 2:06 ` David Gibson
2016-11-10 2:46 ` David Gibson
2016-11-10 3:45 ` Balbir Singh
2016-11-10 4:37 ` [Qemu-devel] [PATCH v2] " Balbir Singh
2016-11-10 23:50 ` David Gibson [this message]
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=20161110235057.GE18868@umbus.fritz.box \
--to=david@gibson.dropbear.id.au \
--cc=bsingharora@gmail.com \
--cc=clg@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).