mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/loongarch: meson.build support build LSX
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20230504122810.4094787-3-gaosong@loongson.cn>
This commit is contained in:
parent
16f5396cec
commit
a0c9400a5b
4 changed files with 13 additions and 0 deletions
5
target/loongarch/insn_trans/trans_lsx.c.inc
Normal file
5
target/loongarch/insn_trans/trans_lsx.c.inc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
/*
|
||||||
|
* LSX translate functions
|
||||||
|
* Copyright (c) 2022-2023 Loongson Technology Corporation Limited
|
||||||
|
*/
|
6
target/loongarch/lsx_helper.c
Normal file
6
target/loongarch/lsx_helper.c
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
/*
|
||||||
|
* QEMU LoongArch LSX helper functions.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2022-2023 Loongson Technology Corporation Limited
|
||||||
|
*/
|
|
@ -11,6 +11,7 @@ loongarch_tcg_ss.add(files(
|
||||||
'op_helper.c',
|
'op_helper.c',
|
||||||
'translate.c',
|
'translate.c',
|
||||||
'gdbstub.c',
|
'gdbstub.c',
|
||||||
|
'lsx_helper.c',
|
||||||
))
|
))
|
||||||
loongarch_tcg_ss.add(zlib)
|
loongarch_tcg_ss.add(zlib)
|
||||||
|
|
||||||
|
|
|
@ -171,6 +171,7 @@ static void gen_set_gpr(int reg_num, TCGv t, DisasExtend dst_ext)
|
||||||
#include "insn_trans/trans_fmemory.c.inc"
|
#include "insn_trans/trans_fmemory.c.inc"
|
||||||
#include "insn_trans/trans_branch.c.inc"
|
#include "insn_trans/trans_branch.c.inc"
|
||||||
#include "insn_trans/trans_privileged.c.inc"
|
#include "insn_trans/trans_privileged.c.inc"
|
||||||
|
#include "insn_trans/trans_lsx.c.inc"
|
||||||
|
|
||||||
static void loongarch_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
|
static void loongarch_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue