2016-04-22 05:47:09 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-04-22 05:47:09 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menu "Nios II Options"
|
|
|
|
depends on NIOS2
|
|
|
|
|
|
|
|
config ARCH
|
|
|
|
string
|
|
|
|
default "nios2"
|
|
|
|
|
|
|
|
config ARCH_DEFCONFIG
|
|
|
|
string
|
|
|
|
default "arch/nios2/defconfig"
|
|
|
|
|
|
|
|
menu "Nios II Gen 2 Processor Options"
|
|
|
|
|
|
|
|
config CPU_NIOS2_GEN2
|
|
|
|
bool
|
|
|
|
default y
|
2017-11-23 02:03:53 +08:00
|
|
|
select BUILD_OUTPUT_HEX
|
2016-04-22 05:47:09 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option signifies the use of a Nios II Gen 2 CPU
|
2016-04-22 05:47:09 +08:00
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Nios II Family Options"
|
|
|
|
|
|
|
|
config XIP
|
|
|
|
bool
|
2016-07-07 03:54:19 +08:00
|
|
|
default y
|
2016-04-22 05:47:09 +08:00
|
|
|
|
2017-02-10 06:37:32 +08:00
|
|
|
config GEN_ISR_TABLES
|
|
|
|
default y
|
|
|
|
|
|
|
|
config GEN_IRQ_VECTOR_TABLE
|
|
|
|
default n
|
|
|
|
|
|
|
|
config NUM_IRQS
|
|
|
|
int
|
|
|
|
default 32
|
|
|
|
|
2016-06-25 02:27:39 +08:00
|
|
|
config HAS_MUL_INSTRUCTION
|
|
|
|
bool
|
|
|
|
|
|
|
|
config HAS_DIV_INSTRUCTION
|
|
|
|
bool
|
|
|
|
|
|
|
|
config HAS_MULX_INSTRUCTION
|
|
|
|
bool
|
|
|
|
|
2016-06-29 04:33:14 +08:00
|
|
|
config INCLUDE_RESET_VECTOR
|
|
|
|
bool "Include Reset vector"
|
|
|
|
default y
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Include the reset vector stub, which enables instruction/data caches
|
|
|
|
and then jumps to __start. This code is typically located at the very
|
|
|
|
beginning of flash memory. You may need to omit this if using the
|
|
|
|
nios2-download tool since it refuses to load data anywhere other than
|
|
|
|
RAM.
|
2016-06-29 04:33:14 +08:00
|
|
|
|
2016-07-07 05:35:26 +08:00
|
|
|
config EXTRA_EXCEPTION_INFO
|
|
|
|
bool "Extra exception debug information"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Have exceptions print additional useful debugging information in
|
|
|
|
human-readable form, at the expense of code size. For example,
|
|
|
|
the cause code for an exception will be supplemented by a string
|
|
|
|
describing what that cause code means.
|
2016-07-07 05:35:26 +08:00
|
|
|
|
2016-07-01 07:45:08 +08:00
|
|
|
choice
|
|
|
|
prompt "Global Pointer options"
|
|
|
|
default GP_GLOBAL
|
|
|
|
|
|
|
|
config GP_NONE
|
|
|
|
bool "No global pointer"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Do not use global pointer relative offsets at all
|
2016-07-01 07:45:08 +08:00
|
|
|
|
|
|
|
config GP_LOCAL
|
|
|
|
bool "Local data global pointer references"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Use global pointer relative offsets for small globals declared in the
|
|
|
|
same C file as the code that uses it.
|
2016-07-01 07:45:08 +08:00
|
|
|
|
|
|
|
config GP_GLOBAL
|
|
|
|
bool "Global data global pointer references"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Use global pointer relative offsets for small globals declared
|
|
|
|
anywhere in the executable. Note that if any small globals that are put
|
|
|
|
in alternate sections (such as _k_task_list_ptr) they must be declared
|
|
|
|
in headers with proper __attribute__((section)) or the linker will
|
|
|
|
error out.
|
2016-07-01 07:45:08 +08:00
|
|
|
|
|
|
|
config GP_ALL_DATA
|
|
|
|
bool "All data global pointer references"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Use GP relative access for all data in the program, not just
|
|
|
|
small data. Use this if your board has 64K or less of RAM.
|
2016-07-01 07:45:08 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2016-04-22 05:47:09 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|