[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] target-tilegx: Execute _start and reach to __li
From: |
Chen Gang S |
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 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
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