mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Hexagon HVX (target/hexagon) import instruction encodings
Acked-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
This commit is contained in:
@@ -47,6 +47,7 @@ enum {
|
||||
/* Name Num Table */
|
||||
DEF_REGMAP(R_16, 16, 0, 1, 2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23)
|
||||
DEF_REGMAP(R__8, 8, 0, 2, 4, 6, 16, 18, 20, 22)
|
||||
DEF_REGMAP(R_8, 8, 0, 1, 2, 3, 4, 5, 6, 7)
|
||||
|
||||
#define DECODE_MAPPED_REG(OPNUM, NAME) \
|
||||
insn->regno[OPNUM] = DECODE_REGISTER_##NAME[insn->regno[OPNUM]];
|
||||
@@ -158,6 +159,9 @@ static void decode_ext_init(void)
|
||||
for (i = EXT_IDX_noext; i < EXT_IDX_noext_AFTER; i++) {
|
||||
ext_trees[i] = &dectree_table_DECODE_EXT_EXT_noext;
|
||||
}
|
||||
for (i = EXT_IDX_mmvec; i < EXT_IDX_mmvec_AFTER; i++) {
|
||||
ext_trees[i] = &dectree_table_DECODE_EXT_EXT_mmvec;
|
||||
}
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define EXTNAME mmvec
|
||||
#include "mmvec/encode_ext.def"
|
||||
#undef EXTNAME
|
||||
@@ -71,6 +71,7 @@
|
||||
|
||||
#include "encode_pp.def"
|
||||
#include "encode_subinsn.def"
|
||||
#include "allextenc.def"
|
||||
|
||||
#ifdef __SELF_DEF_FIELD32
|
||||
#undef __SELF_DEF_FIELD32
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user