Re: [Qemu-devel] [PATCH 08/10 v11] target-tilegx: Add several helpers for instructions translation

2015-06-01 Thread Richard Henderson
On 05/30/2015 02:17 PM, Chen Gang wrote: +for (count = 0; count 8; count++) { +sel = (rsrcb (count * 8)) 0xf; +if (sel 8) { +vdst |= ((rdst (8 * sel)) 0xff) (count * 8); +} else { +vdst |= ((rsrc (8 * (8 - sel))) 0xff) (count *

Re: [Qemu-devel] [PATCH 08/10 v11] target-tilegx: Add several helpers for instructions translation

2015-06-01 Thread Chen Gang
On 6/2/15 00:02, Richard Henderson wrote: On 05/30/2015 02:17 PM, Chen Gang wrote: +for (count = 0; count 8; count++) { +sel = (rsrcb (count * 8)) 0xf; +if (sel 8) { +vdst |= ((rdst (8 * sel)) 0xff) (count * 8); +} else { +vdst |=

[Qemu-devel] [PATCH 08/10 v11] target-tilegx: Add several helpers for instructions translation

2015-05-30 Thread Chen Gang
The related instructions are exception, cntlz, cnttz, and shufflebytes. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/helper.c | 73 ++ target-tilegx/helper.h | 4 +++ 2 files changed, 77 insertions(+) create mode 100644