Re: [Qemu-devel] [PATCH 4/5] target-tricore: Add instructions of BIT opcode format

2014-09-28 Thread Peter Maydell
On 28 September 2014 13:05, Bastian Koppelmann wrote: > I often don't use the optimal tcg-frontend operation, since the > documentation I mostly use is > http://wiki.qemu.org/Documentation/TCG/frontend-ops, which is outdated. Probably better to read (and update if necessary) tcg/README. -- PMM

Re: [Qemu-devel] [PATCH 4/5] target-tricore: Add instructions of BIT opcode format

2014-09-28 Thread Bastian Koppelmann
On 09/28/2014 06:22 AM, Richard Henderson wrote: +case OPC2_32_BIT_XNOR_T: +gen_bit_1op(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2], +pos1, pos2, &tcg_gen_xor_tl); tcg_gen_eqv_tl I often don't use the optimal tcg-frontend operation, since the documentation I mo

Re: [Qemu-devel] [PATCH 4/5] target-tricore: Add instructions of BIT opcode format

2014-09-27 Thread Richard Henderson
On 09/27/2014 07:58 AM, Bastian Koppelmann wrote: > +/* D[c] = D[c][0] op1 (D[a][pos1] op2 D[b][pos2]);*/ > +static inline void gen_bit_2op(TCGv ret, TCGv r1, TCGv r2, TCGv r3, > + int pos1, int pos2, > + void(*op1)(TCGv, TCGv, TCGv), > +

[Qemu-devel] [PATCH 4/5] target-tricore: Add instructions of BIT opcode format

2014-09-27 Thread Bastian Koppelmann
Add instructions of BIT opcode format. Add microcode generator functions gen_bit_1/2op to do 1/2 bit operations on the last bit. Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c | 349 + 1 file changed, 349 insertions(+) diff --git a/