[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 21/22] tcg/riscv: Introduce OPC_NOP
From: |
Richard Henderson |
Subject: |
[PATCH 21/22] tcg/riscv: Introduce OPC_NOP |
Date: |
Mon, 5 Dec 2022 22:17:14 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/riscv/tcg-target.c.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tcg/riscv/tcg-target.c.inc b/tcg/riscv/tcg-target.c.inc
index 37baae9cda..de029d62b4 100644
--- a/tcg/riscv/tcg-target.c.inc
+++ b/tcg/riscv/tcg-target.c.inc
@@ -254,6 +254,7 @@ typedef enum {
#endif
OPC_FENCE = 0x0000000f,
+ OPC_NOP = OPC_ADDI, /* nop = addi r0,r0,0 */
} RISCVInsn;
/*
@@ -390,7 +391,7 @@ static void tcg_out_nop_fill(tcg_insn_unit *p, int count)
{
int i;
for (i = 0; i < count; ++i) {
- p[i] = encode_i(OPC_ADDI, TCG_REG_ZERO, TCG_REG_ZERO, 0);
+ p[i] = OPC_NOP;
}
}
--
2.34.1
- [PATCH 13/22] tcg: Move tb_target_set_jmp_target declaration to tcg.h, (continued)
- [PATCH 13/22] tcg: Move tb_target_set_jmp_target declaration to tcg.h, Richard Henderson, 2022/12/05
- [PATCH 15/22] tcg: Remove TCG_TARGET_HAS_direct_jump, Richard Henderson, 2022/12/05
- [PATCH 16/22] tcg/aarch64: Reorg goto_tb implementation, Richard Henderson, 2022/12/05
- [PATCH 17/22] tcg/ppc: Reorg goto_tb implementation, Richard Henderson, 2022/12/05
- [PATCH 19/22] tcg/sparc64: Reorg goto_tb implementation, Richard Henderson, 2022/12/05
- [PATCH 18/22] tcg/sparc64: Remove USE_REG_TB, Richard Henderson, 2022/12/05
- [PATCH 20/22] tcg/arm: Implement direct branch for goto_tb, Richard Henderson, 2022/12/05
- [PATCH 21/22] tcg/riscv: Introduce OPC_NOP,
Richard Henderson <=
- [PATCH 22/22] tcg/riscv: Implement direct branch for goto_tb, Richard Henderson, 2022/12/05