xtensa: xt-sim: mark it as a board with simulator features

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-05-11 09:01:09 -04:00 committed by Anas Nashif
commit 09b239102a
3 changed files with 13 additions and 3 deletions

View file

@ -15,6 +15,13 @@ menu "XTENSA Options"
config ARCH config ARCH
default "xtensa" default "xtensa"
config SIMULATOR_XTENSA
bool
prompt "Simulator Configuration"
default n
help
Specify if the board configuration should be treated as a simulator.
config SYS_CLOCK_HW_CYCLES_PER_SEC config SYS_CLOCK_HW_CYCLES_PER_SEC
int int
prompt "Hardware clock cycles per second, 2000000 for ISS" prompt "Hardware clock cycles per second, 2000000 for ISS"

View file

@ -3,6 +3,6 @@
# Copyright (c) 2016 Cadence Design Systems, Inc. # Copyright (c) 2016 Cadence Design Systems, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
config SIMULATOR_XTENSA config BOARD_SIMULATOR_XTENSA
bool "Xtensa Development ISS" bool "Xtensa Development ISS"
depends on XTENSA depends on XTENSA

View file

@ -3,9 +3,12 @@
# Copyright (c) 2016 Cadence Design Systems, Inc. # Copyright (c) 2016 Cadence Design Systems, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SIMULATOR_XTENSA if BOARD_SIMULATOR_XTENSA
config BOARD config BOARD
default xt-sim default xt-sim
endif # SIMULATOR_XTENSA config SIMULATOR_XTENSA
def_bool y
endif # BOARD_SIMULATOR_XTENSA