From: Chen Gang S <gang.chen@sunrus.com.cn>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Riku Voipio <riku.voipio@iki.fi>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user.
Date: Thu, 12 Feb 2015 10:53:19 +0800 [thread overview]
Message-ID: <54DC159F.9060407@sunrus.com.cn> (raw)
In-Reply-To: <CAFEAcA9L0QWzC6CXkG3iSY_Recd4kqiav6ekWse+=tW647hXcw@mail.gmail.com>
On 2/12/15 08:49, Peter Maydell wrote:
> On 12 February 2015 at 00:00, Chen Gang S <gang.chen@sunrus.com.cn> wrote:
>> After load elf64 tilegx binary for linux-user, the working flow reaches
>> the first correct instruction postion "__start". Next, we shall load all
>> instructions for qemu using.
>
>> ---
>> configure | 7 +
>> default-configs/tile-linux-user.mak | 1 +
>> include/elf.h | 3 +
>> include/hw/elf_ops.h | 7 +
>> linux-user/elfload.c | 24 +++
>> linux-user/main.c | 81 +++++++++
>> linux-user/syscall_defs.h | 34 +++-
>> linux-user/tile/syscall.h | 90 ++++++++++
>> linux-user/tile/syscall_nr.h | 327 ++++++++++++++++++++++++++++++++++++
>> linux-user/tile/target_cpu.h | 35 ++++
>> linux-user/tile/target_signal.h | 28 +++
>> linux-user/tile/target_structs.h | 48 ++++++
>> linux-user/tile/termbits.h | 285 +++++++++++++++++++++++++++++++
>> target-tile/Makefile.objs | 1 +
>> target-tile/cpu-qom.h | 72 ++++++++
>> target-tile/cpu.c | 159 ++++++++++++++++++
>> target-tile/cpu.h | 84 +++++++++
>> target-tile/helper.h | 0
>> target-tile/translate.c | 54 ++++++
>> 19 files changed, 1337 insertions(+), 3 deletions(-)
>
> A diffstat like this for a single patch indicates that
> you *must* break this down into multiple patches for it
> to be sensibly reviewable. Each patch should provide a
> small but coherent part of the code. I suggest you look
> at the mailing list archives and git history for other
> new targets to see how this kind of "add a new architecture"
> can be broken up into multiple patches
>
> (Based purely on the number of lines added here I would
> expect this to end up at at least 5 and probably more
> like 10 patches or maybe more, but aim for a sensible
> split of the functionality rather than a particular number
> of patches. If in doubt, prefer more smaller patches to
> fewer larger ones.)
>
OK, thank. I shall read related git log for another architectures, and
split current patch into multiple patches.
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
prev parent reply other threads:[~2015-02-12 2:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 0:00 [Qemu-devel] [PATCH] tile: Can load elf64 tilegx binary successfully for linux-user Chen Gang S
2015-02-12 0:12 ` Chen Gang S
2015-02-12 0:24 ` Chris Metcalf
2015-02-12 3:32 ` Chen Gang S
2015-02-12 3:48 ` Chen Gang S
2015-02-12 22:32 ` Chris Metcalf
2015-02-13 4:03 ` Chen Gang S
2015-02-12 22:31 ` Chris Metcalf
2015-02-13 4:43 ` Chen Gang S
2015-02-13 4:56 ` Peter Maydell
2015-02-13 5:44 ` Chen Gang S
2015-02-13 5:43 ` Peter Maydell
2015-02-13 6:34 ` Chen Gang S
2015-02-12 0:49 ` Peter Maydell
2015-02-12 2:53 ` Chen Gang S [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=54DC159F.9060407@sunrus.com.cn \
--to=gang.chen@sunrus.com.cn \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/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.