qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v5 20/33] Hexagon (target/hexagon) generator phase 2 - ge


From: Alessandro Di Federico
Subject: Re: [RFC PATCH v5 20/33] Hexagon (target/hexagon) generator phase 2 - generate header files
Date: Sat, 21 Nov 2020 10:49:46 +0100

On Thu, 29 Oct 2020 19:08:26 -0500
Taylor Simpson <tsimpson@quicinc.com> wrote:

> +def genptr_decl_new(f,regtype,regid,regno):
> +    if (regtype == "N"):
> +        if (regid in {"s", "t"}):
> +            f.write("    const int %s%sX = insn->regno[%d];\n" % \
> +                (regtype, regid, regno))
> +            f.write("    TCGv %s%sN = tcg_const_tl(%s%sX);\n" % \
> +                (regtype, regid, regtype, regid))

This part is a bit incoherent with all the rest.
You're creating a TCGv containing a constant representing the register
number. Why not just create a TCGv with the value of the register
itself as you usually do?

-- 
Alessandro Di Federico
rev.ng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]