1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 24690bdc7SPaul Mundtmenu "Processor features" 34690bdc7SPaul Mundt 44690bdc7SPaul Mundtchoice 56b2aac42SMasanari Iida prompt "Endianness selection" 64690bdc7SPaul Mundt default CPU_LITTLE_ENDIAN 74690bdc7SPaul Mundt help 84690bdc7SPaul Mundt Some SuperH machines can be configured for either little or big 94690bdc7SPaul Mundt endian byte order. These modes require different kernels. 104690bdc7SPaul Mundt 114690bdc7SPaul Mundtconfig CPU_LITTLE_ENDIAN 124690bdc7SPaul Mundt bool "Little Endian" 134690bdc7SPaul Mundt 144690bdc7SPaul Mundtconfig CPU_BIG_ENDIAN 154690bdc7SPaul Mundt bool "Big Endian" 164690bdc7SPaul Mundt 174690bdc7SPaul Mundtendchoice 184690bdc7SPaul Mundt 194690bdc7SPaul Mundtconfig SH_FPU 20d7ef4fb3SHarvey Harrison def_bool y 21d7ef4fb3SHarvey Harrison prompt "FPU support" 224690bdc7SPaul Mundt depends on CPU_HAS_FPU 234690bdc7SPaul Mundt help 244690bdc7SPaul Mundt Selecting this option will enable support for SH processors that 254690bdc7SPaul Mundt have FPU units (ie, SH77xx). 264690bdc7SPaul Mundt 274690bdc7SPaul Mundt This option must be set in order to enable the FPU. 284690bdc7SPaul Mundt 294690bdc7SPaul Mundtconfig SH_FPU_EMU 30d7ef4fb3SHarvey Harrison def_bool n 31d7ef4fb3SHarvey Harrison prompt "FPU emulation support" 320d57af1eSKees Cook depends on !SH_FPU 334690bdc7SPaul Mundt help 344690bdc7SPaul Mundt Selecting this option will enable support for software FPU emulation. 354690bdc7SPaul Mundt Most SH-3 users will want to say Y here, whereas most SH-4 users will 364690bdc7SPaul Mundt want to say N. 374690bdc7SPaul Mundt 384690bdc7SPaul Mundtconfig SH_DSP 39d7ef4fb3SHarvey Harrison def_bool y 40d7ef4fb3SHarvey Harrison prompt "DSP support" 414690bdc7SPaul Mundt depends on CPU_HAS_DSP 424690bdc7SPaul Mundt help 434690bdc7SPaul Mundt Selecting this option will enable support for SH processors that 444690bdc7SPaul Mundt have DSP units (ie, SH2-DSP, SH3-DSP, and SH4AL-DSP). 454690bdc7SPaul Mundt 464690bdc7SPaul Mundt This option must be set in order to enable the DSP. 474690bdc7SPaul Mundt 484690bdc7SPaul Mundtconfig SH_ADC 49d7ef4fb3SHarvey Harrison def_bool y 50d7ef4fb3SHarvey Harrison prompt "ADC support" 514690bdc7SPaul Mundt depends on CPU_SH3 524690bdc7SPaul Mundt help 534690bdc7SPaul Mundt Selecting this option will allow the Linux kernel to use SH3 on-chip 544690bdc7SPaul Mundt ADC module. 554690bdc7SPaul Mundt 564690bdc7SPaul Mundt If unsure, say N. 574690bdc7SPaul Mundt 584690bdc7SPaul Mundtconfig SH_STORE_QUEUES 594690bdc7SPaul Mundt bool "Support for Store Queues" 604690bdc7SPaul Mundt depends on CPU_SH4 614690bdc7SPaul Mundt help 624690bdc7SPaul Mundt Selecting this option will enable an in-kernel API for manipulating 634690bdc7SPaul Mundt the store queues integrated in the SH-4 processors. 644690bdc7SPaul Mundt 654690bdc7SPaul Mundtconfig SPECULATIVE_EXECUTION 664690bdc7SPaul Mundt bool "Speculative subroutine return" 678c563a30SMatt Fleming depends on CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7786 684690bdc7SPaul Mundt help 694690bdc7SPaul Mundt This enables support for a speculative instruction fetch for 704690bdc7SPaul Mundt subroutine return. There are various pitfalls associated with 714690bdc7SPaul Mundt this, as outlined in the SH7780 hardware manual. 724690bdc7SPaul Mundt 734690bdc7SPaul Mundt If unsure, say N. 744690bdc7SPaul Mundt 754690bdc7SPaul Mundtconfig CPU_HAS_INTEVT 764690bdc7SPaul Mundt bool 774690bdc7SPaul Mundt 784690bdc7SPaul Mundtconfig CPU_HAS_IPR_IRQ 794690bdc7SPaul Mundt bool 804690bdc7SPaul Mundt 814690bdc7SPaul Mundtconfig CPU_HAS_SR_RB 824690bdc7SPaul Mundt bool 834690bdc7SPaul Mundt help 844690bdc7SPaul Mundt This will enable the use of SR.RB register bank usage. Processors 854690bdc7SPaul Mundt that are lacking this bit must have another method in place for 864690bdc7SPaul Mundt accomplishing what is taken care of by the banked registers. 874690bdc7SPaul Mundt 88*d47a97bdSJonathan Corbet See <file:Documentation/arch/sh/register-banks.rst> for further 894690bdc7SPaul Mundt information on SR.RB and register banking in the kernel in general. 904690bdc7SPaul Mundt 918263a67eSPaul Mundtconfig CPU_HAS_PTEAEX 928263a67eSPaul Mundt bool 938263a67eSPaul Mundt 944690bdc7SPaul Mundtconfig CPU_HAS_DSP 954690bdc7SPaul Mundt bool 964690bdc7SPaul Mundt 974690bdc7SPaul Mundtconfig CPU_HAS_FPU 984690bdc7SPaul Mundt bool 994690bdc7SPaul Mundt 1004690bdc7SPaul Mundtendmenu 101