diff options
| author | Yongbok Kim <yongbok.kim@mips.com> | 2019-07-29 19:23:33 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-15 00:07:46 +0200 |
| commit | 9253773cb7ff10d85ccaf4d5f418ea5c7fa31834 (patch) | |
| tree | 414f8639d75c0788a5eedc7e485ceca123cb6f1c /target/mips/helper.h | |
| parent | 9a4e273ddec3927920c5958d2226c6b38b543336 (diff) | |
| download | focaccia-qemu-9253773cb7ff10d85ccaf4d5f418ea5c7fa31834.tar.gz focaccia-qemu-9253773cb7ff10d85ccaf4d5f418ea5c7fa31834.zip | |
target/mips: Add support for emulation of CRC32 instructions
Add emulation of MIPS' CRC32 (Cyclic Redundancy Check) instructions.
Reuse zlib crc32() and Linux crc32c().
Corresponding disassembly has been added in commit 99029be1c28
("target/mips: Add implementation of GINVT instruction").
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>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <PA4PR09MB486489692D843DDFC25F3CF1846B2@PA4PR09MB4864.eurprd09.prod.outlook.com>
Diffstat (limited to 'target/mips/helper.h')
| -rw-r--r-- | target/mips/helper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/mips/helper.h b/target/mips/helper.h index 7e40041828..b6cd53c853 100644 --- a/target/mips/helper.h +++ b/target/mips/helper.h @@ -21,6 +21,8 @@ DEF_HELPER_FLAGS_1(bitswap, TCG_CALL_NO_RWG_SE, tl, tl) DEF_HELPER_FLAGS_1(dbitswap, TCG_CALL_NO_RWG_SE, tl, tl) #endif +DEF_HELPER_3(crc32, tl, tl, tl, i32) +DEF_HELPER_3(crc32c, tl, tl, tl, i32) DEF_HELPER_FLAGS_4(rotx, TCG_CALL_NO_RWG_SE, tl, tl, i32, i32, i32) /* microMIPS functions */ |