From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] MIPS: cpu-probe: move fpu probing/handling into its own file
Date: Sat, 10 Oct 2020 01:30:38 +0100 (BST) [thread overview]
Message-ID: <alpine.LFD.2.21.2010100128110.866917@eddie.linux-mips.org> (raw)
In-Reply-To: <20201008213327.11603-1-tsbogend@alpha.franken.de>
On Thu, 8 Oct 2020, Thomas Bogendoerfer wrote:
> + /*
> + * MAC2008 toolchain never landed in real world, so we're only
> + * testing whether it can be disabled and don't try to enabled
> + * it.
> + */
> + fcsr0 = fcsr & ~(FPU_CSR_ABS2008 | FPU_CSR_NAN2008 | FPU_CSR_MAC2008);
> + write_32bit_cp1_register(CP1_STATUS, fcsr0);
> + fcsr0 = read_32bit_cp1_register(CP1_STATUS);
> +
> + fcsr1 = fcsr | FPU_CSR_ABS2008 | FPU_CSR_NAN2008;
> + write_32bit_cp1_register(CP1_STATUS, fcsr1);
> + fcsr1 = read_32bit_cp1_register(CP1_STATUS);
> +
> + write_32bit_cp1_register(CP1_STATUS, fcsr);
> +
> + if (c->isa_level & (MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2)) {
> + /*
> + * The bit for MAC2008 might be reused by R6 in future,
> + * so we only test for R2-R5.
> + */
Umm, this has formatting issues with lines extending beyond column #80.
Maciej
next prev parent reply other threads:[~2020-10-10 0:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-08 21:33 [PATCH v2 1/2] MIPS: cpu-probe: move fpu probing/handling into its own file Thomas Bogendoerfer
2020-10-08 21:33 ` [PATCH v2 2/2] MIPS: cpu-probe: introduce exclusive R3k CPU probe Thomas Bogendoerfer
2020-10-12 10:30 ` Thomas Bogendoerfer
2020-10-10 0:30 ` Maciej W. Rozycki [this message]
2020-10-10 8:56 ` [PATCH v2 1/2] MIPS: cpu-probe: move fpu probing/handling into its own file Sergei Shtylyov
2020-10-10 12:11 ` Maciej W. Rozycki
2020-10-12 11:17 ` Sergei Shtylyov
2020-10-12 10:29 ` Thomas Bogendoerfer
2020-10-12 10:30 ` Thomas Bogendoerfer
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=alpine.LFD.2.21.2010100128110.866917@eddie.linux-mips.org \
--to=macro@linux-mips.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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