insn.h (c88da1f3dac9681b29a0d23016a7acbbc2c8c517) insn.h (1e536334ccb0a1606f814a38a4996b3b818e9fab)
1/*
1/*
2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
2 * Copyright(c) 2019-2022 Qualcomm Innovation Center, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 12 unchanged lines hidden (view full) ---

23#define INSTRUCTIONS_MAX 7 /* 2 pairs + loopend */
24#define REG_OPERANDS_MAX 5
25#define IMMEDS_MAX 2
26
27struct Instruction;
28struct Packet;
29struct DisasContext;
30
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of

--- 12 unchanged lines hidden (view full) ---

23#define INSTRUCTIONS_MAX 7 /* 2 pairs + loopend */
24#define REG_OPERANDS_MAX 5
25#define IMMEDS_MAX 2
26
27struct Instruction;
28struct Packet;
29struct DisasContext;
30
31typedef void (*SemanticInsn)(CPUHexagonState *env,
32 struct DisasContext *ctx,
33 struct Instruction *insn,
34 struct Packet *pkt);
31typedef void (*SemanticInsn)(struct DisasContext *ctx);
35
36struct Instruction {
37 SemanticInsn generate; /* pointer to genptr routine */
38 uint8_t regno[REG_OPERANDS_MAX]; /* reg operands including predicates */
39 uint16_t opcode;
40
41 uint32_t iclass:6;
42 uint32_t slot:3;

--- 36 unchanged lines hidden ---
32
33struct Instruction {
34 SemanticInsn generate; /* pointer to genptr routine */
35 uint8_t regno[REG_OPERANDS_MAX]; /* reg operands including predicates */
36 uint16_t opcode;
37
38 uint32_t iclass:6;
39 uint32_t slot:3;

--- 36 unchanged lines hidden ---