Merge remote-tracking branch 'tyssjhx/dev' into loongarch-port
Some checks are pending
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:Ubuntu x86_64 os:ubuntu-latest]) (push) Waiting to run
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:Windows x86_64 os:windows-2022]) (push) Waiting to run
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:macOS x86_64 os:macos-latest]) (push) Waiting to run
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x86 name:Windows x86 os:windows-2022]) (push) Waiting to run
Zig Build / build-ubuntu (ubuntu-latest) (push) Waiting to run
Zig Build / build-macos (macos-latest) (push) Waiting to run
Some checks are pending
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:Ubuntu x86_64 os:ubuntu-latest]) (push) Waiting to run
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:Windows x86_64 os:windows-2022]) (push) Waiting to run
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x64 name:macOS x86_64 os:macos-latest]) (push) Waiting to run
Crate 📦 Distribution / ${{ matrix.config.name }} (map[arch:x86 name:Windows x86 os:windows-2022]) (push) Waiting to run
Zig Build / build-ubuntu (ubuntu-latest) (push) Waiting to run
Zig Build / build-macos (macos-latest) (push) Waiting to run
This commit is contained in:
16
qemu/configure
vendored
16
qemu/configure
vendored
@@ -491,6 +491,8 @@ elif check_define __aarch64__ ; then
|
||||
cpu="aarch64"
|
||||
elif check_define __tricore__ ; then
|
||||
cpu="tricore"
|
||||
elif check_define __loongarch64 ; then
|
||||
cpu="loongarch64"
|
||||
else
|
||||
cpu=$(uname -m)
|
||||
fi
|
||||
@@ -534,6 +536,10 @@ case "$cpu" in
|
||||
cpu="tricore"
|
||||
supported_cpu="yes"
|
||||
;;
|
||||
loongarch64)
|
||||
cpu="loongarch64"
|
||||
supported_cpu="yes"
|
||||
;;
|
||||
*)
|
||||
# This will result in either an error or falling back to TCI later
|
||||
ARCH=unknown
|
||||
@@ -844,6 +850,11 @@ case "$cpu" in
|
||||
CPU_CFLAGS="-m64 -mcx16"
|
||||
QEMU_LDFLAGS="-m64 $QEMU_LDFLAGS"
|
||||
;;
|
||||
loongarch*)
|
||||
CPU_CFLAGS=""
|
||||
QEMU_LDFLAGS=" $QEMU_LDFLAGS"
|
||||
;;
|
||||
|
||||
x32)
|
||||
CPU_CFLAGS="-mx32"
|
||||
QEMU_LDFLAGS="-mx32 $QEMU_LDFLAGS"
|
||||
@@ -2659,6 +2670,11 @@ case "$target_name" in
|
||||
mttcg="yes"
|
||||
TARGET_SYSTBL_ABI=i386
|
||||
;;
|
||||
loongarch64)
|
||||
mttcg="yes"
|
||||
TARGET_ARCH=loongarch64
|
||||
TARGET_SYSTBL_ABI=common,64
|
||||
;;
|
||||
x86_64)
|
||||
TARGET_BASE_ARCH=i386
|
||||
TARGET_SYSTBL_ABI=common,64
|
||||
|
||||
Reference in New Issue
Block a user