aboutsummaryrefslogtreecommitdiff
path: root/target/riscv/instmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'target/riscv/instmap.h')
-rw-r--r--target/riscv/instmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/riscv/instmap.h b/target/riscv/instmap.h
index 58baa1b..f8ad7d6 100644
--- a/target/riscv/instmap.h
+++ b/target/riscv/instmap.h
@@ -16,6 +16,9 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef TARGET_RISCV_INSTMAP_H
+#define TARGET_RISCV_INSTMAP_H
+
#define MASK_OP_MAJOR(op) (op & 0x7F)
enum {
/* rv32i, rv64i, rv32m */
@@ -362,3 +365,5 @@ enum {
#define GET_C_RS2(inst) extract32(inst, 2, 5)
#define GET_C_RS1S(inst) (8 + extract32(inst, 7, 3))
#define GET_C_RS2S(inst) (8 + extract32(inst, 2, 3))
+
+#endif