03afdc28b3
Loongson introduced CSR instructions since 3A4000, which looks similar to IOCSR and CPUCFG instructions we seen in LoongArch. Unfortunately we don't have much document about those instructions, bit fields of CPUCFG instructions and IOCSR registers can be found at 3A4000's user manual, while instruction encodings can be found at arch/mips/include/asm/mach-loongson64/loongson_regs.h from Linux Kernel. Our predefined CPUCFG bits are differ from actual 3A4000, since we can't emulate all CPUCFG features present in 3A4000 for now, we just enable bits for what we have in TCG. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Message-Id: <20230521214832.20145-2-jiaxun.yang@flygoat.com> [JY: Fixed typo in ase_lcsr_available(), retrict GEN_FALSE_TRANS] [PMD: Fix meson's mips_softmmu_ss -> mips_system_ss, restrict AddressSpace/MemoryRegion to SysEmu] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
38 lines
1008 B
Meson
38 lines
1008 B
Meson
gen = [
|
|
decodetree.process('rel6.decode', extra_args: ['--decode=decode_isa_rel6']),
|
|
decodetree.process('msa.decode', extra_args: '--decode=decode_ase_msa'),
|
|
decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'),
|
|
decodetree.process('vr54xx.decode', extra_args: '--decode=decode_ext_vr54xx'),
|
|
decodetree.process('octeon.decode', extra_args: '--decode=decode_ext_octeon'),
|
|
decodetree.process('lcsr.decode', extra_args: '--decode=decode_ase_lcsr'),
|
|
]
|
|
|
|
mips_ss.add(gen)
|
|
mips_ss.add(files(
|
|
'dsp_helper.c',
|
|
'exception.c',
|
|
'fpu_helper.c',
|
|
'ldst_helper.c',
|
|
'lmmi_helper.c',
|
|
'msa_helper.c',
|
|
'msa_translate.c',
|
|
'op_helper.c',
|
|
'rel6_translate.c',
|
|
'translate.c',
|
|
'translate_addr_const.c',
|
|
'txx9_translate.c',
|
|
'vr54xx_helper.c',
|
|
'vr54xx_translate.c',
|
|
))
|
|
mips_ss.add(when: 'TARGET_MIPS64', if_true: files(
|
|
'tx79_translate.c',
|
|
'octeon_translate.c',
|
|
'lcsr_translate.c',
|
|
), if_false: files(
|
|
'mxu_translate.c',
|
|
))
|
|
|
|
if have_system
|
|
subdir('sysemu')
|
|
endif
|