From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Aleksandar Rakic <rakicaleksandar1999@gmail.com>, qemu-devel@nongnu.org
Cc: aleksandar.rakic@htecgroup.com, djordje.todorovic@htecgroup.com,
cfu@mips.com, arikalo@gmail.com, peter.maydell@linaro.org,
aurelien@aurel32.net, jiaxun.yang@flygoat.com, kwolf@redhat.com,
hreitz@redhat.com, pbonzini@redhat.com, alex.bennee@linaro.org,
pierrick.bouvier@linaro.org, berrange@redhat.com,
Yongbok Kim <yongbok.kim@mips.com>,
Aleksandar Markovic <amarkovic@wavecomp.com>
Subject: Re: [PATCH v3 1/4] Add support for emulation of CRC32 instructions
Date: Wed, 22 Jan 2025 09:38:20 +0100 [thread overview]
Message-ID: <9bb8aa7b-a464-4dfc-9c76-7ab50d195b2f@linaro.org> (raw)
In-Reply-To: <d136993d-48bc-4283-9de0-c956b5cac302@linaro.org>
On 22/1/25 08:27, Philippe Mathieu-Daudé wrote:
> On 12/11/24 17:41, Aleksandar Rakic wrote:
>> Add emulation of MIPS' CRC32 (Cyclic Redundancy Check) instructions.
>> Reuse zlib crc32() and Linux crc32c().
>>
>> Cherry-picked 4cc974938aee1588f852590509004e340c072940
>> from https://github.com/MIPS/gnutools-qemu
>>
>> Signed-off-by: Yongbok Kim <yongbok.kim@mips.com>
>> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
>> Signed-off-by: Aleksandar Rakic <aleksandar.rakic@htecgroup.com>
>> Reviewed-by: Aleksandar Rikalo <arikalo@gmail.com>
>> ---
>> target/mips/helper.h | 2 ++
>> target/mips/meson.build | 1 +
>> target/mips/tcg/op_helper.c | 26 ++++++++++++++++++++++++++
>> target/mips/tcg/rel6.decode | 5 +++++
>> target/mips/tcg/rel6_translate.c | 14 ++++++++++++++
>> target/mips/tcg/translate.c | 25 +++++++++++++++++++++++++
>> target/mips/tcg/translate.h | 3 +++
>> 7 files changed, 76 insertions(+)
>
>
>> diff --git a/target/mips/tcg/rel6.decode b/target/mips/tcg/rel6.decode
>> index d6989cf56e..5074338aa5 100644
>> --- a/target/mips/tcg/rel6.decode
>> +++ b/target/mips/tcg/rel6.decode
>> @@ -16,11 +16,16 @@
>> &r rs rt rd sa
>> +&special3_crc rs rt c sz
>> +
>> @lsa ...... rs:5 rt:5 rd:5 ... sa:2 ...... &r
>> +@crc32 ...... rs:5 rt:5 ..... c:3 sz:2 ......
>> &special3_crc
>> LSA 000000 ..... ..... ..... 000 .. 000101 @lsa
>> DLSA 000000 ..... ..... ..... 000 .. 010101 @lsa
>> +CRC32 011111 ..... ..... 00000 ... .. 001111 @crc32
Are these really available on MIPS64? (Looking at MD00087 Revision 6.05)
> Interestingly the disassembly for that is in tree, hidden in commit
> 99029be1c28 ("target/mips: Add implementation of GINVT instruction")...
next prev parent reply other threads:[~2025-01-22 8:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 16:41 [PATCH v3 0/4] Improve Mips target Aleksandar Rakic
2024-11-12 16:41 ` Aleksandar Rakic
2024-11-12 16:41 ` [PATCH v3 1/4] Add support for emulation of CRC32 instructions Aleksandar Rakic
2024-12-11 15:14 ` Aleksandar Rakic
2025-01-17 12:00 ` Aleksandar Rakic
2025-01-22 7:22 ` Philippe Mathieu-Daudé
2025-01-22 7:27 ` Philippe Mathieu-Daudé
2025-01-22 8:38 ` Philippe Mathieu-Daudé [this message]
2024-11-12 16:41 ` [PATCH v3 2/4] Skip NaN mode check for soft-float Aleksandar Rakic
2024-12-11 15:17 ` Aleksandar Rakic
2025-01-17 12:02 ` Aleksandar Rakic
2024-11-12 16:41 ` [PATCH v3 3/4] target/mips: Enable MSA ASE using a CLI flag Aleksandar Rakic
2024-12-11 15:19 ` Aleksandar Rakic
2025-01-17 12:03 ` Aleksandar Rakic
2024-11-12 16:41 ` [PATCH v3 4/4] target/mips: Enable MSA ASE for mips64R2-generic Aleksandar Rakic
2024-11-12 19:29 ` Philippe Mathieu-Daudé
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=9bb8aa7b-a464-4dfc-9c76-7ab50d195b2f@linaro.org \
--to=philmd@linaro.org \
--cc=aleksandar.rakic@htecgroup.com \
--cc=alex.bennee@linaro.org \
--cc=amarkovic@wavecomp.com \
--cc=arikalo@gmail.com \
--cc=aurelien@aurel32.net \
--cc=berrange@redhat.com \
--cc=cfu@mips.com \
--cc=djordje.todorovic@htecgroup.com \
--cc=hreitz@redhat.com \
--cc=jiaxun.yang@flygoat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rakicaleksandar1999@gmail.com \
--cc=yongbok.kim@mips.com \
/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).