Fix use_lsx_instructions
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:
2025-04-14 23:09:01 +08:00
parent 0cd8b83f5b
commit 596478d791
3 changed files with 7 additions and 8 deletions

View File

@@ -32,8 +32,6 @@
#include "../tcg-ldst.inc.c"
#include <asm/hwcap.h>
bool use_lsx_instructions;
#ifdef CONFIG_DEBUG_TCG
static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
"zero",
@@ -2604,10 +2602,10 @@ static void tcg_target_init(TCGContext *s)
}
if (hwcap & HWCAP_LOONGARCH_LSX) {
use_lsx_instructions = 1;
s->use_lsx_instructions = 1;
}
#else
use_lsx_instructions = 1;
s->use_lsx_instructions = 1;
#endif
s->tcg_target_available_regs[TCG_TYPE_I32] = ALL_GENERAL_REGS;