From: Richard Henderson <richard.henderson@linaro.org>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>, qemu-devel@nongnu.org
Cc: f4bug@amsat.org
Subject: Re: [PATCH 1/6] target/mips: Introduce register access helper functions
Date: Tue, 25 Oct 2022 08:47:55 +1000 [thread overview]
Message-ID: <1a9239b9-8ed9-2be5-dcbe-e8e3ce30284d@linaro.org> (raw)
In-Reply-To: <20221024152349.215135-2-jiaxun.yang@flygoat.com>
On 10/25/22 01:23, Jiaxun Yang wrote:
> Introduce register access functions with value extend capability
> to prepare for decodetree based translation implmentation.
>
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> target/mips/tcg/translate.c | 143 +++++++++++++++++++++++++++++++++++-
> target/mips/tcg/translate.h | 54 ++++++++++++++
> 2 files changed, 196 insertions(+), 1 deletion(-)
>
> diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c
> index de1511baaf..b5d595ef34 100644
> --- a/target/mips/tcg/translate.c
> +++ b/target/mips/tcg/translate.c
> @@ -1196,6 +1196,17 @@ enum {
> MMI_OPC_MADDU1 = 0x21 | MMI_OPC_CLASS_MMI,
> };
>
> +/*
> + * If an operation is being performed on less than TARGET_LONG_BITS,
> + * it may require the inputs to be sign- or zero-extended; which will
> + * depend on the exact operation being performed.
> + */
> +typedef enum {
> + EXT_NONE,
> + EXT_SIGN,
> + EXT_ZERO
> +} DisasExtend;
Remove as duplicate -- this is also in translate.h. I'm surprised no compile error.
Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2022-10-24 22:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 15:23 [PATCH 0/6] MIPS decodetree conversion Jiaxun Yang
2022-10-24 15:23 ` [PATCH 1/6] target/mips: Introduce register access helper functions Jiaxun Yang
2022-10-24 22:47 ` Richard Henderson [this message]
2022-10-24 15:23 ` [PATCH 2/6] target/mips: Convert legacy arithmatic instructions to decodetree Jiaxun Yang
2022-10-24 15:23 ` [PATCH 3/6] tests/tcg/mips: Add mips32 arithmatic instruction test cases Jiaxun Yang
2022-10-24 15:23 ` [PATCH 4/6] target/mips: Split Loongson extention translation into standalone file Jiaxun Yang
2022-10-24 15:23 ` [PATCH 5/6] target/mips: Move all tx79 instructions to decodetree Jiaxun Yang
2022-10-24 15:23 ` [PATCH 6/6] target/mips: Make MXU decoder standalone Jiaxun Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a9239b9-8ed9-2be5-dcbe-e8e3ce30284d@linaro.org \
--to=richard.henderson@linaro.org \
--cc=f4bug@amsat.org \
--cc=jiaxun.yang@flygoat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).