mirror of
https://github.com/qemu/qemu.git
synced 2025-08-23 10:15:59 +00:00

Add emulation of MIPS' CRC32 (Cyclic Redundancy Check) instructions.
Reuse zlib crc32() and Linux crc32c().
Corresponding disassembly has been added in commit 99029be1c2
("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>
25 lines
460 B
Meson
25 lines
460 B
Meson
mips_user_ss = ss.source_set()
|
|
mips_system_ss = ss.source_set()
|
|
mips_ss = ss.source_set()
|
|
mips_ss.add(files(
|
|
'cpu.c',
|
|
'fpu.c',
|
|
'gdbstub.c',
|
|
'msa.c',
|
|
))
|
|
mips_ss.add(zlib)
|
|
|
|
if have_system
|
|
subdir('system')
|
|
endif
|
|
|
|
if 'CONFIG_TCG' in config_all_accel
|
|
subdir('tcg')
|
|
endif
|
|
|
|
mips_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c'))
|
|
|
|
target_arch += {'mips': mips_ss}
|
|
target_system_arch += {'mips': mips_system_ss}
|
|
target_user_arch += {'mips': mips_user_ss}
|