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