Skip to content

Commit 042103b

Browse files
Move operand fields to standard RISCV file
1 parent 73ff4c8 commit 042103b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

include/opcode/riscv-sfpu.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -483,13 +483,4 @@
483483
#define OP_SH_POOL_ADDR_MODE 15
484484
#define OP_MASK_POOL_ADDR_MODE 0x7
485485

486-
#define OP_SH_CMDBUF 31
487-
#define OP_MASK_CMDBUF 0x1
488-
#define OP_SH_REG_VALUE 25
489-
#define OP_MASK_REG_VALUE 0x3f
490-
#define OP_SH_CMDBUF_ADDRGEN 30
491-
#define OP_MASK_CMDBUF_ADDRGEN 0x1
492-
#define OP_SH_REG_ADDRGEN 25
493-
#define OP_MASK_REG_ADDRGEN 0x1f
494-
495486
#endif // RISCV_SFPU_H

include/opcode/riscv.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,16 @@ static inline unsigned int riscv_insn_length (insn_t insn)
399399
#define OP_MASK_XSO1 0x1
400400
#define OP_SH_XSO1 26
401401

402+
/* Tenstorrent fields. */
403+
#define OP_SH_CMDBUF 31
404+
#define OP_MASK_CMDBUF 0x1
405+
#define OP_SH_REG_VALUE 25
406+
#define OP_MASK_REG_VALUE 0x3f
407+
#define OP_SH_CMDBUF_ADDRGEN 30
408+
#define OP_MASK_CMDBUF_ADDRGEN 0x1
409+
#define OP_SH_REG_ADDRGEN 25
410+
#define OP_MASK_REG_ADDRGEN 0x1f
411+
402412
#include "opcode/riscv-sfpu.h"
403413

404414
/* ABI names for selected x-registers. */

0 commit comments

Comments
 (0)