[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/15] tcg/arm: Add host vector framework
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 02/15] tcg/arm: Add host vector framework |
Date: |
Mon, 8 Feb 2021 17:53:17 +0000 |
On Mon, 8 Feb 2021 at 03:48, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Add registers and function stubs. The functionality
> is disabled via use_neon_instructions defined to 0.
>
> We must still include results for the mandatory opcodes in
> tcg_target_op_def, as all opcodes are checked during tcg init.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> + if (use_neon_instructions) {
> + tcg_target_available_regs[TCG_TYPE_V64] = ALL_VECTOR_REGS;
> + tcg_target_available_regs[TCG_TYPE_V128] = ALL_VECTOR_REGS;
> +
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q0);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q1);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q2);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q3);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q4);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q5);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q6);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q7);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q8);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q9);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q10);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q11);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q12);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q13);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q14);
> + tcg_regset_set_reg(tcg_target_call_clobber_regs, TCG_REG_Q15);
> + }
The AAPCS says that q4-q7 are preserved across calls.
Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
[PATCH v2 03/15] tcg/arm: Implement tcg_out_ld/st for vector types, Richard Henderson, 2021/02/07
[PATCH v2 04/15] tcg/arm: Implement tcg_out_mov for vector types, Richard Henderson, 2021/02/07
[PATCH v2 07/15] tcg/arm: Implement andc, orc, abs, neg, not vector operations, Richard Henderson, 2021/02/07