mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
MIPS: Use WSBH/DSBH/DSHD on Loongson 3A
Signed-off-by: chenj <chenj@lemote.com> Cc: linux-mips@linux-mips.org Cc: chenhc@lemote.com Patchwork: https://patchwork.linux-mips.org/patch/7542/ Patchwork: https://patchwork.linux-mips.org/patch/7550/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
0f33be009b
commit
3c09bae43b
6 changed files with 36 additions and 7 deletions
|
@ -231,6 +231,16 @@
|
|||
#define cpu_has_clo_clz cpu_has_mips_r
|
||||
#endif
|
||||
|
||||
/*
|
||||
* MIPS32 R2, MIPS64 R2, Loongson 3A and Octeon have WSBH.
|
||||
* MIPS64 R2, Loongson 3A and Octeon have WSBH, DSBH and DSHD.
|
||||
* This indicates the availability of WSBH and in case of 64 bit CPUs also
|
||||
* DSBH and DSHD.
|
||||
*/
|
||||
#ifndef cpu_has_wsbh
|
||||
#define cpu_has_wsbh cpu_has_mips_r2
|
||||
#endif
|
||||
|
||||
#ifndef cpu_has_dsp
|
||||
#define cpu_has_dsp (cpu_data[0].ases & MIPS_ASE_DSP)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue