All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Sebastian Huber <sebastian.huber@embedded-brains.de>
Cc: blauwirbel@gmail.com, qemu-devel@nongnu.org,
	Fabien Chouteau <chouteau@adacore.com>
Subject: Re: [Qemu-devel] [PATCH v3] target-sparc: Add and use CPU_FEATURE_CASA
Date: Fri, 14 Feb 2014 17:04:16 +0100	[thread overview]
Message-ID: <52FE3E80.5060000@suse.de> (raw)
In-Reply-To: <52FE39B1.1020506@embedded-brains.de>

Am 14.02.2014 16:43, schrieb Sebastian Huber:
> On 2014-02-14 16:33, Andreas Färber wrote:
>>> @@ -5120,6 +5119,20 @@ static void disas_sparc_insn(DisasContext *
>>> dc, unsigned int insn)
>>> >                  case 0x37: /* stdc */
>>> >                      goto ncp_insn;
>>> >  #endif
>>> >+#if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
>>> >+                case 0x3c: /* V9 or LEON3 casa */
>>> >+                    CHECK_FPU_FEATURE(dc, CASA);
>>> >+#ifndef TARGET_SPARC64
>>> >+                    if (IS_IMM)
>>
>> Did you forget to run checkpatch.pl? Missing braces here ...
>>
>>> >+                        goto illegal_insn;
>>> >+                    if (!supervisor(dc))
>> ... and here.
>>
>>> >+                        goto priv_insn;
>> Otherwise patch looks okay, thanks for the subject normalization.
> 
> I didn't know there was a checkpatch.pl, I run it next time.

http://blog.vmsplice.net/2011/03/how-to-automatically-run-checkpatchpl.html
may be helpful then. :)

There's also scripts/get_maintainer.pl --nogit-fallback.

> This code fragment is a copy and paste move from another place in this
> file. There a lot of similar style errors in this file.

Our policy is to have new code adhere to the official Coding Style. If
you want, you can do a two-patch series (in which case we ask for a
cover letter...), with the initial one cleaning up the existing style
faults and the second one doing the actual change. But to be clear, such
cleanup of old code is entirely optional.

>> As for the other one you'll need to sort our who sends a pull if Blue
>> doesn't resurface - I note that qemu-trivial is not CC'ed here and the
>> patch probably isn't anyway. Maybe Fabien can help out with that?
>>
>> More generally, independent of this patch with test case in its commit
>> message, you may want to consider setting up tests/tcg/sparc/ for test
>> cases and/or use qtest with accel=tcg similar to what mst did for ACPI
>> regression testing.
> 
> Ok, I will have a look at this.  Is this a required step to get the
> patch committed?

No, that was a forward-looking suggestion, seeing you providing a test
case in the commit message.

Cheers,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2014-02-14 16:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 15:16 [Qemu-devel] [PATCH v3] target-sparc: Add and use CPU_FEATURE_CASA Sebastian Huber
2014-02-14 15:33 ` Andreas Färber
2014-02-14 15:43   ` Sebastian Huber
2014-02-14 16:04     ` Andreas Färber [this message]
2014-02-14 17:27   ` Fabien Chouteau
2014-03-02 18:11     ` Andreas Färber
2014-03-07 12:18       ` Fabien Chouteau

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=52FE3E80.5060000@suse.de \
    --to=afaerber@suse.de \
    --cc=blauwirbel@gmail.com \
    --cc=chouteau@adacore.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sebastian.huber@embedded-brains.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 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.