Re: [RFC PATCH v7 12/29] target/loongarch: Add timer related instructions support.

2022-03-28 Thread Richard Henderson
On 3/28/22 06:57, Xiaojuan Yang wrote: +#ifndef CONFIG_USER_ONLY +static bool gen_rdtime(DisasContext *ctx, arg_rr *a, + bool word, bool high) +{ +TCGv dst1 = gpr_dst(ctx, a->rd, EXT_NONE); +TCGv dst2 = gpr_dst(ctx, a->rj, EXT_NONE); + +if

[RFC PATCH v7 12/29] target/loongarch: Add timer related instructions support.

2022-03-28 Thread Xiaojuan Yang
This includes: -RDTIME{L/H}.W -RDTIME.D Signed-off-by: Xiaojuan Yang Signed-off-by: Song Gao --- target/loongarch/helper.h | 1 + target/loongarch/insn_trans/trans_extra.c.inc | 32 +++ target/loongarch/op_helper.c | 6