diff --git a/target/Config.in b/target/Config.in index ac0f1f982..c2395923d 100644 --- a/target/Config.in +++ b/target/Config.in @@ -156,6 +156,10 @@ config i386 config i686 bool +config loongarch64 + select ARCH_64BIT + bool + config m68k bool @@ -220,6 +224,7 @@ config ARCH default "armeb" if armeb default "i386" if i386 default "i686" if i686 + default "loongarch64" if loongarch64 default "m68k" if m68k default "mips" if mips default "mipsel" if mipsel diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in index 1f6e0f890..3e7a0e152 100644 --- a/toolchain/gcc/Config.in +++ b/toolchain/gcc/Config.in @@ -3,6 +3,7 @@ choice prompt "GCC compiler Version" if TOOLCHAINOPTS default GCC_USE_VERSION_8 if mips || mipsel || mips64 || mips64el + default GCC_USE_VERSION_13 if loongarch64 default GCC_USE_VERSION_11 help Select the version of gcc you wish to use. diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version index c621849da..8670f49b4 100644 --- a/toolchain/gcc/Config.version +++ b/toolchain/gcc/Config.version @@ -9,6 +9,7 @@ config GCC_VERSION_12 config GCC_VERSION_13 default y if GCC_USE_VERSION_13 + default y if loongarch64 bool config GCC_VERSION