All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jia Liu <proljc@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: sw@weilnetz.de, qemu-devel@nongnu.org, aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu
Date: Fri, 23 Mar 2012 09:40:05 +0800	[thread overview]
Message-ID: <CAJBMM-uoK=GPRyy4yTaagXFHXwDQrwbiNagTgCBvKwbJwLEAVA@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA9H2ACfcW6nTk8wO1uQyZDJL5xXdJkZnETT62Xb5MS+5w@mail.gmail.com>

On Thu, Mar 22, 2012 at 10:01 PM, Peter Maydell
<peter.maydell@linaro.org> wrote:
> On 22 March 2012 13:36, Jia Liu <proljc@gmail.com> wrote:
>> Jia Liu (4):
>>  add MIPS DSP helpers define
>>  add MIPS DSP helpers implement
>>  add MIPS DSP translation
>>  add MIPS DSP testcase
>
> You can't split these changes into patches like this.
> Every patch needs to be complete of itself, and in particular
> it has to compile cleanly at each intermediate point, not just
> after all patches are applied. If you apply just patch 1/4
> then compilation fails:
>  LINK  mips-softmmu/qemu-system-mips
> translate.o: In function `mips_tcg_init':
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/helper.h:301:
> undefined reference to `helper_absqsph'
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/helper.h:302:
> undefined reference to `helper_absqsw'
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/helper.h:303:
> undefined reference to `helper_addqph'
> [snipped long list of similar errors]
>
> It would be better to break it up as patches each of
> which adds support for a coherent bite-sized subset of
> these instructions (so each individual patch includes
> the helper function declaration, implementation and
> translate.c changes for a smaller number of instructions).
>

Thank you.
So I should split these changes into 2 patches, 0001 DSP Support, 0002
testcases. Is it OK?

> You also need to test compilation on a 32 bit host, as that
> is currently broken. For example:
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/op_helper.c:
> In function ‘mipsdsp_sat_add_i32’:
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/op_helper.c:3565:
> error: integer constant is too large for ‘long’ type
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/op_helper.c:
> In function ‘mipsdsp_mul_q31_q31’:
> /home/petmay01/linaro/qemu-from-laptop/qemu/target-mips/op_helper.c:3874:
> error: integer constant is too large for ‘long’ type
> [and on for another long list of errors]
>
> Most of these seem to be that you need the "ULL" suffix for
> constants which are more than 32 bits wide.
>

Sorry, I'm working on a x64 machine, but I'll test it at a i386 machine.

Thank you every much!

> -- PMM

Regards,
Jia.

  reply	other threads:[~2012-03-23  1:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 13:36 [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu Jia Liu
2012-03-22 13:36 ` [Qemu-devel] [PATCH V2 1/4] add MIPS DSP helpers define Jia Liu
2012-03-22 13:36 ` [Qemu-devel] [PATCH V2 2/4] add MIPS DSP helpers implement Jia Liu
2012-03-22 13:54   ` Peter Maydell
2012-03-23  1:24     ` Jia Liu
2012-03-22 13:36 ` [Qemu-devel] [PATCH V2 3/4] add MIPS DSP translation Jia Liu
2012-03-22 13:36 ` [Qemu-devel] [PATCH V2 4/4] add MIPS DSP testcase Jia Liu
2012-03-22 14:01 ` [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu Peter Maydell
2012-03-23  1:40   ` Jia Liu [this message]
2012-03-23  7:21   ` 陳韋任
2012-03-22 14:03 ` Peter Maydell
2012-03-23  1:31   ` Jia Liu
2012-03-23 16:01 ` Richard Henderson
2012-03-26  1:07   ` Jia Liu

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='CAJBMM-uoK=GPRyy4yTaagXFHXwDQrwbiNagTgCBvKwbJwLEAVA@mail.gmail.com' \
    --to=proljc@gmail.com \
    --cc=aurelien@aurel32.net \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.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.