qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: "Guo, Lei" <guol-fnst@cn.fujitsu.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: Thomas Huth <thuth@linux.vnet.ibm.com>,
	Andreas Schwab <schwab@linux-m68k.org>,
	"Wang, Chunping" <wangcp@cn.fujitsu.com>,
	Laurent Vivier <laurent@vivier.eu>
Subject: Re: [Qemu-devel] Add CMP2 instruction
Date: Fri, 07 Nov 2014 12:15:23 +0100	[thread overview]
Message-ID: <545CA9CB.8080108@suse.de> (raw)
In-Reply-To: <36D1AB4E1AAC4541A1C88167C7231D0B74BAAD@G08CNEXMBPEKD02.g08.fujitsu.local>

Hi,

Am 07.11.2014 um 11:14 schrieb Guo, Lei:
> This patch aims to add CMP2 instruction for m68k family.
> 
>  
> 
> *Description: *Compares the value in Rn to each bound. The effective
> address contains the
> 
> bounds pair: upper bound following the lower bound. For signed
> comparisons, the
> 
> arithmetically smaller value should be used as the lower bound. For unsigned
> 
> comparisons, the logically smaller value should be the lower bound.
> 
> The size of the data and the bounds can be specified as byte, word, or
> long. If Rn is a
> 
> data register and the operation size is byte or word, only the
> appropriate low-order part
> 
> of Rn is checked. If Rn is an address register and the operation size is
> byte or word,
> 
> the bounds operands are sign-extended to 32 bits, and the resultant
> operands are
> 
> compared to the full 32 bits of An.
> 
> If the upper bound equals the lower bound, the valid range is a single
> value.
> 
>  
> 
> signed-off-by: Guolei <guol-fnst@cn.fujitsu.com
> <mailto:guol-fnst@cn.fujitsu.com%20>>
> 
>  
> 
> ---

Please talk to your Fujitsu colleagues for how to correctly submit
patches to our mailing list. As you can see above, it arrives rather
"funny" due to your use of HTML. As a sanity check, you can mail the
patch to yourself, save it from your inbox to disk and try to apply it
via "git am yourmailfilename".

Why do you write "Description:" in the patch description? Is that a
verbatim copy from the manual? In that case you should name the source.
Otherwise please drop "Description:" and just describe it.

Also, Signed-off-by with a capital S please, and no space after your
email. If you use git commit -s you can avoid such issues from the start.

Please also use a meaningful topic in the subject, "target-m68k: Add
CMP2 instruction" tells us that this is not for x86 or ARM etc.

More information here:
http://wiki.qemu-project.org/Contribute/SubmitAPatch

As for the contents, you should be aware that QEMU currently emulates
ColdFire only and not the full 68k instruction set. So you may need to
limit your new instruction to certain CPU types. CC'ing Laurent+Andreas.

You haven't replied to Thomas' question on your previous submission
either. If you resubmit, please either mark as [PATCH RESEND], or if
things changed (such as adding the s ;)) as [PATCH v2] and include a
summary of changes below ---.

Note that there is currently no dedicated maintainer to review m68k
patches, so only obviously correct bug fixes are likely to get accepted
unless someone (you?) steps up for reviewing, testing and queuing such
patches on a Git branch.

Finally a minor nit: Please add a space between ) and {.
scripts/checkpatch.pl may help you find such style issues.
http://blog.vmsplice.net/2011/03/how-to-automatically-run-checkpatchpl.html

Looking forward to seeing the m68k target improved.

Regards,
Andreas

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

  parent reply	other threads:[~2014-11-07 11:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 10:14 [Qemu-devel] Add CMP2 instruction Guo, Lei
2014-11-07 11:10 ` Alex Bennée
2014-11-07 11:15 ` Andreas Färber [this message]
2014-11-10  3:21   ` [Qemu-devel] 答复: " Guo, Lei
2014-11-10 11:30     ` Laurent Vivier
2014-11-07 11:26 ` [Qemu-devel] " Richard Henderson
2014-11-07 11:57 ` Laurent Vivier
2014-11-07 13:44 ` Laurent Vivier
2014-11-07 20:05 ` Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2014-11-10  1:35 Guo, Lei

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=545CA9CB.8080108@suse.de \
    --to=afaerber@suse.de \
    --cc=guol-fnst@cn.fujitsu.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=schwab@linux-m68k.org \
    --cc=thuth@linux.vnet.ibm.com \
    --cc=wangcp@cn.fujitsu.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 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).