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....@mips.com>
Signed-off-by: Aleksandar Markovic <amarko...@wavecomp.com>
Signed-off-by: Aleksandar Rakic <aleksandar.ra...@htecgroup.com>
Reviewed-by: Aleksandar Rikalo <arik...@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(+)
Thanks Aleksandar, could you add a pair of tests in
tests/tcg/mips/user/isa/mips64r6/?