Re: [Qemu-devel] [PATCH 2/4] tcg/aarch64: implement byte swap operations

2013-06-03 Thread Claudio Fontana
On 31.05.2013 21:11, Richard Henderson wrote: > On 05/31/2013 11:01 AM, Jani Kokkonen wrote: >> +static inline void tcg_out_rev(TCGContext *s, int ext, TCGReg rd, TCGReg rm) >> +{ >> +/* using REV 0x5ac00800 */ >> +unsigned int base = ext ? 0xdac00c00 : 0x5ac00800; >> +tcg_out32(s, base

[Qemu-devel] [PATCH 2/4] tcg/aarch64: implement byte swap operations

2013-05-31 Thread Jani Kokkonen
From: Claudio Fontana implement the optional byte swap operations with the dedicated aarch64 instructions. These instructions are also needed for the tlb lookup. Signed-off-by: Claudio Fontana --- tcg/aarch64/tcg-target.c | 42 ++ tcg/aarch64/tcg-target.

Re: [Qemu-devel] [PATCH 2/4] tcg/aarch64: implement byte swap operations

2013-05-31 Thread Richard Henderson
On 05/31/2013 11:01 AM, Jani Kokkonen wrote: > +static inline void tcg_out_rev(TCGContext *s, int ext, TCGReg rd, TCGReg rm) > +{ > +/* using REV 0x5ac00800 */ > +unsigned int base = ext ? 0xdac00c00 : 0x5ac00800; > +tcg_out32(s, base | rm << 5 | rd); > +} > + > +static inline void tcg_