[Qemu-devel] [PATCH] tci: Support deposit operations (use deposit32, deposit64)

2012-09-18 Thread Stefan Weil
The operations for INDEX_op_deposit_i32 and INDEX_op_deposit_i64 are now supported and enabled by default. Signed-off-by: Stefan Weil --- This is a 2nd implementation of the deposit operations. It differs from the previous patch only in the interpreter part which uses functions deposit32, deposi

Re: [Qemu-devel] [PATCH] tci: Support deposit operations

2012-09-14 Thread Stefan Weil
Am 10.09.2012 16:08, schrieb Richard Henderson: On Sat, 2012-09-08 at 16:12 +0200, Stefan Weil wrote: +tmp16 = *tb_ptr++; +tmp8 = *tb_ptr++; +tmp32 = (((1<< tmp8) - 1)<< tmp16); +tci_write_reg32(t0, (t1& ~tmp32) | ((t2<< tmp16)& tmp32)); Use

Re: [Qemu-devel] [PATCH] tci: Support deposit operations

2012-09-10 Thread Richard Henderson
On Sat, 2012-09-08 at 16:12 +0200, Stefan Weil wrote: > +tmp16 = *tb_ptr++; > +tmp8 = *tb_ptr++; > +tmp32 = (((1 << tmp8) - 1) << tmp16); > +tci_write_reg32(t0, (t1 & ~tmp32) | ((t2 << tmp16) & > tmp32)); Use the deposit* functions from bitops.h? r

[Qemu-devel] [PATCH] tci: Support deposit operations

2012-09-08 Thread Stefan Weil
The operations for INDEX_op_deposit_i32 and INDEX_op_deposit_i64 are now supported and enabled by default. Signed-off-by: Stefan Weil --- tcg/tci/tcg-target.c | 24 tcg/tci/tcg-target.h |4 ++-- tci.c| 22 ++ 3 files changed, 4