提交 1a404c91 编写于 作者: M Mark Cave-Ayland 提交者: David Gibson

target/ppc: introduce get_fpr() and set_fpr() helpers for FP register access

These helpers allow us to move FP register values to/from the specified TCGv_i64
argument in the VSR helpers to be introduced shortly.

To prevent FP helpers accessing the cpu_fpr array directly, add extra TCG
temporaries as required.
Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
上级 4c23c2a5
......@@ -6699,6 +6699,16 @@ static inline void gen_##name(DisasContext *ctx) \
GEN_TM_PRIV_NOOP(treclaim);
GEN_TM_PRIV_NOOP(trechkpt);
static inline void get_fpr(TCGv_i64 dst, int regno)
{
tcg_gen_mov_i64(dst, cpu_fpr[regno]);
}
static inline void set_fpr(int regno, TCGv_i64 src)
{
tcg_gen_mov_i64(cpu_fpr[regno], src);
}
#include "translate/fp-impl.inc.c"
#include "translate/vmx-impl.inc.c"
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册