Skip to content

Commit 2df1eb2

Browse files
bonzinistsquad
authored andcommitted
kconfig: use "select" to enable semihosting
Just like all other dependencies, these can be expressed in Kconfig files rather than in the default configurations. Signed-off-by: Paolo Bonzini <[email protected]> Acked-by: Alistair Francis <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Message-Id: <[email protected]>
1 parent 1fed4cd commit 2df1eb2

File tree

11 files changed

+6
-13
lines changed

11 files changed

+6
-13
lines changed

configs/devices/m68k-softmmu/default.mak

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Default configuration for m68k-softmmu
22

3-
CONFIG_SEMIHOSTING=y
4-
53
# Boards:
64
#
75
CONFIG_AN5206=y

configs/devices/mips-softmmu/common.mak

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Common mips*-softmmu CONFIG defines
22

3-
# CONFIG_SEMIHOSTING is always required on this architecture
4-
CONFIG_SEMIHOSTING=y
5-
63
CONFIG_ISA_BUS=y
74
CONFIG_PCI=y
85
CONFIG_PCI_DEVICES=y

configs/devices/nios2-softmmu/default.mak

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Default configuration for nios2-softmmu
22

3-
CONFIG_SEMIHOSTING=y
4-
53
# Boards:
64
#
75
CONFIG_NIOS2_10M50=y

configs/devices/riscv32-softmmu/default.mak

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# Uncomment the following lines to disable these optional devices:
44
#
55
#CONFIG_PCI_DEVICES=n
6-
CONFIG_SEMIHOSTING=y
7-
CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
86

97
# Boards:
108
#

configs/devices/riscv64-softmmu/default.mak

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# Uncomment the following lines to disable these optional devices:
44
#
55
#CONFIG_PCI_DEVICES=n
6-
CONFIG_SEMIHOSTING=y
7-
CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
86

97
# Boards:
108
#

configs/devices/xtensa-softmmu/default.mak

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Default configuration for Xtensa
22

3-
CONFIG_SEMIHOSTING=y
4-
53
# Boards:
64
#
75
CONFIG_XTENSA_SIM=y

target/m68k/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
config M68K
22
bool
3+
select SEMIHOSTING

target/mips/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
config MIPS
22
bool
3+
select SEMIHOSTING
34

45
config MIPS64
56
bool

target/nios2/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
config NIOS2
22
bool
3+
select SEMIHOSTING

target/riscv/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
config RISCV32
22
bool
3+
select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
34

45
config RISCV64
56
bool
7+
select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()

0 commit comments

Comments
 (0)