Re: [PATCH 1/6] target/ppc: add byte-reverse br[dwh] instructions

2020-06-19 Thread Richard Henderson
On 6/18/20 10:24 PM, Lijun Pan wrote: > Why can’t I retrieve the offset via > “offsetof(CPUPPCState,gpr[rA(ctx->opcode)])”? > I would like to learn more. The TCG compiler makes some simplifying assumptions in order to make it faster. One of them is that global temporaries cannot be modified via

Re: [PATCH 1/6] target/ppc: add byte-reverse br[dwh] instructions

2020-06-18 Thread Lijun Pan
> On Jun 18, 2020, at 6:19 PM, Richard Henderson > wrote: > > On 6/12/20 9:20 PM, Lijun Pan wrote: >> POWER ISA 3.1 introduces following byte-reverse instructions: >> brd: Byte-Reverse Doubleword X-form >> brw: Byte-Reverse Word X-form >> brh: Byte-Reverse Halfword X-form >> >> Signed-off-by

Re: [PATCH 1/6] target/ppc: add byte-reverse br[dwh] instructions

2020-06-18 Thread Richard Henderson
On 6/12/20 9:20 PM, Lijun Pan wrote: > POWER ISA 3.1 introduces following byte-reverse instructions: > brd: Byte-Reverse Doubleword X-form > brw: Byte-Reverse Word X-form > brh: Byte-Reverse Halfword X-form > > Signed-off-by: Lijun Pan > --- > target/ppc/translate.c | 62

[PATCH 1/6] target/ppc: add byte-reverse br[dwh] instructions

2020-06-12 Thread Lijun Pan
POWER ISA 3.1 introduces following byte-reverse instructions: brd: Byte-Reverse Doubleword X-form brw: Byte-Reverse Word X-form brh: Byte-Reverse Halfword X-form Signed-off-by: Lijun Pan --- target/ppc/translate.c | 62 ++ 1 file changed, 62 insertions(+)