From: Chen Gang S <gang.chen@sunrus.com.cn>
To: Peter Maydell <peter.maydell@linaro.org>,
Richard Henderson <rth@redhat.com>,
Chris Metcalf <cmetcalf@ezchip.com>,
"walt@tilera.com" <walt@tilera.com>,
Riku Voipio <riku.voipio@iki.fi>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] target-tilegx: Execute _start and reach to __libc_start_main successfully
Date: Tue, 24 Feb 2015 16:07:06 +0800 [thread overview]
Message-ID: <54EC312A.7000906@sunrus.com.cn> (raw)
In-Reply-To: <54EC2DEE.8050809@sunrus.com.cn>
On 2/24/15 15:53, Chen Gang S wrote:
[...]
> diff --git a/target-tilegx/translate.c b/target-tilegx/translate.c
> index 5131fa7..82c751e 100644
> --- a/target-tilegx/translate.c
> +++ b/target-tilegx/translate.c
> @@ -25,18 +25,880 @@
> #include "exec/cpu_ldst.h"
> #include "exec/helper-gen.h"
>
> +#define TILEGX_BUNDLE_SIZE 8 /* Each bundle size in bytes */
> +#define TILEGX_BUNDLE_INSNS 3 /* Maximized insns per bundle */
> +#define TILEGX_BUNDLE_OPCS 10 /* Assume maximized opcs per bundle */
> +
> +/* Check Bundle whether is Y type, else is X type */
> +#define TILEGX_BUNDLE_TYPE_MASK 0xc000000000000000ULL
> +#define TILEGX_BUNDLE_TYPE_Y(bundle) ((bundle) & TILEGX_BUNDLE_TYPE_MASK)
> +#define TILEGX_BUNDLE_TYPE_X(bundle) (!TILEGX_BUNDLE_TYPE_Y(bundle))
> +
> +/* Bundle pipe mask, still remain the bundle type */
Oh, this comment is incorrect, it should be: "Bundle pipe mask without
bundle type".
> +#define TILEGX_PIPE_X0(bundle) ((bundle) & 0x000000007fffffffULL)
> +#define TILEGX_PIPE_X1(bundle) ((bundle) & 0x3fffffff80000000ULL)
> +#define TILEGX_PIPE_Y0(bundle) ((bundle) & 0x00000000780fffffULL)
> +#define TILEGX_PIPE_Y1(bundle) ((bundle) & 0x3c07ffff80000000ULL)
> +#define TILEGX_PIPE_Y2(bundle) ((bundle) & 0x03f8000007f00000ULL)
> +
[...]
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
next prev parent reply other threads:[~2015-02-24 8:01 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 7:53 [Qemu-devel] [PATCH] target-tilegx: Execute _start and reach to __libc_start_main successfully Chen Gang S
2015-02-24 8:07 ` Chen Gang S [this message]
2015-02-24 14:21 ` Chris Metcalf
2015-02-24 14:38 ` Peter Maydell
2015-02-24 15:39 ` Chen Gang S
2015-02-24 16:42 ` Richard Henderson
2015-02-24 17:08 ` Chen Gang S
2015-02-24 16:31 ` Chen Gang S
2015-02-24 16:46 ` Chris Metcalf
2015-02-24 17:25 ` Chen Gang S
2015-02-24 18:18 ` Chris Metcalf
2015-02-25 1:01 ` Chen Gang S
2015-02-24 17:55 ` Richard Henderson
2015-02-25 3:40 ` Chen Gang S
2015-02-25 17:19 ` Richard Henderson
2015-02-26 1:44 ` Chen Gang S
2015-02-26 16:31 ` Richard Henderson
2015-02-26 23:30 ` Chen Gang S
2015-02-27 3:01 ` Chris Metcalf
2015-02-27 3:41 ` Chen Gang S
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=54EC312A.7000906@sunrus.com.cn \
--to=gang.chen@sunrus.com.cn \
--cc=cmetcalf@ezchip.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
--cc=rth@redhat.com \
--cc=walt@tilera.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).