1# Copyright (c) 2016 Intel Corporation 2# SPDX-License-Identifier: Apache-2.0 3 4menu "Nios II Options" 5 depends on NIOS2 6 7config ARCH 8 string 9 default "nios2" 10 11menu "Nios II Gen 2 Processor Options" 12 13config CPU_NIOS2_GEN2 14 bool 15 default y 16 select BUILD_OUTPUT_HEX 17 select ARCH_HAS_EXTRA_EXCEPTION_INFO 18 help 19 This option signifies the use of a Nios II Gen 2 CPU 20 21endmenu 22 23menu "Nios II Family Options" 24 25config GEN_ISR_TABLES 26 default y 27 28config GEN_IRQ_VECTOR_TABLE 29 default n 30 31config NUM_IRQS 32 int 33 default 32 34 35config HAS_MUL_INSTRUCTION 36 bool 37 38config HAS_DIV_INSTRUCTION 39 bool 40 41config HAS_MULX_INSTRUCTION 42 bool 43 44config INCLUDE_RESET_VECTOR 45 bool "Include Reset vector" 46 default y 47 help 48 Include the reset vector stub, which enables instruction/data caches 49 and then jumps to __start. This code is typically located at the very 50 beginning of flash memory. You may need to omit this if using the 51 nios2-download tool since it refuses to load data anywhere other than 52 RAM. 53 54config EXTRA_EXCEPTION_INFO 55 bool "Extra exception debug information" 56 help 57 Have exceptions print additional useful debugging information in 58 human-readable form, at the expense of code size. For example, 59 the cause code for an exception will be supplemented by a string 60 describing what that cause code means. 61 62choice 63 prompt "Global Pointer options" 64 default GP_GLOBAL 65 66config GP_NONE 67 bool "No global pointer" 68 help 69 Do not use global pointer relative offsets at all 70 71config GP_LOCAL 72 bool "Local data global pointer references" 73 help 74 Use global pointer relative offsets for small globals declared in the 75 same C file as the code that uses it. 76 77config GP_GLOBAL 78 bool "Global data global pointer references" 79 help 80 Use global pointer relative offsets for small globals declared 81 anywhere in the executable. Note that if any small globals that are put 82 in alternate sections they must be declared 83 in headers with proper __attribute__((section)) or the linker will 84 error out. 85 86config GP_ALL_DATA 87 bool "All data global pointer references" 88 help 89 Use GP relative access for all data in the program, not just 90 small data. Use this if your board has 64K or less of RAM. 91 92endchoice 93 94endmenu 95 96endmenu 97