[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 05/12] target/hexagon: make helper functions non-static
From: |
Alessandro Di Federico |
Subject: |
[PATCH v3 05/12] target/hexagon: make helper functions non-static |
Date: |
Tue, 30 Mar 2021 16:37:43 +0200 |
From: Paolo Montesel <babush@rev.ng>
Make certain helper functions non-static, making them available outside
genptr.c. These functions are required by code generated by the
idef-parser.
Signed-off-by: Alessandro Di Federico <ale@rev.ng>
Signed-off-by: Paolo Montesel <babush@rev.ng>
---
target/hexagon/genptr.c | 7 ++++---
target/hexagon/genptr.h | 6 ++++++
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/target/hexagon/genptr.c b/target/hexagon/genptr.c
index fd18aabe8d..1ddb4360f1 100644
--- a/target/hexagon/genptr.c
+++ b/target/hexagon/genptr.c
@@ -26,8 +26,9 @@
#include "translate.h"
#include "macros.h"
#include "gen_tcg.h"
+#include "genptr.h"
-static inline TCGv gen_read_preg(TCGv pred, uint8_t num)
+TCGv gen_read_preg(TCGv pred, uint8_t num)
{
tcg_gen_mov_tl(pred, hex_pred[num]);
return pred;
@@ -54,7 +55,7 @@ static inline void gen_log_predicated_reg_write(int rnum,
TCGv val,
tcg_temp_free(slot_mask);
}
-static inline void gen_log_reg_write(int rnum, TCGv val)
+void gen_log_reg_write(int rnum, TCGv val)
{
tcg_gen_mov_tl(hex_new_value[rnum], val);
#if HEX_DEBUG
@@ -118,7 +119,7 @@ static void gen_log_reg_write_pair(int rnum, TCGv_i64 val)
#endif
}
-static inline void gen_log_pred_write(int pnum, TCGv val)
+void gen_log_pred_write(int pnum, TCGv val)
{
TCGv zero = tcg_const_tl(0);
TCGv base_val = tcg_temp_new();
diff --git a/target/hexagon/genptr.h b/target/hexagon/genptr.h
index c158005d2a..e1dcd24b0e 100644
--- a/target/hexagon/genptr.h
+++ b/target/hexagon/genptr.h
@@ -19,7 +19,13 @@
#define HEXAGON_GENPTR_H
#include "insn.h"
+#include "tcg/tcg.h"
+#include "translate.h"
extern const SemanticInsn opcode_genptr[];
+TCGv gen_read_preg(TCGv pred, uint8_t num);
+void gen_log_reg_write(int rnum, TCGv val);
+void gen_log_pred_write(int pnum, TCGv val);
+
#endif
--
2.31.1
- [PATCH v3 00/12] target/hexagon: introduce idef-parser, Alessandro Di Federico, 2021/03/30
- [PATCH v3 07/12] target/hexagon: expose next PC in DisasContext, Alessandro Di Federico, 2021/03/30
- [PATCH v3 01/12] tcg: expose TCGCond manipulation routines, Alessandro Di Federico, 2021/03/30
- [PATCH v3 04/12] target/hexagon: make slot number an unsigned, Alessandro Di Federico, 2021/03/30
- [PATCH v3 02/12] target/hexagon: update MAINTAINERS for idef-parser, Alessandro Di Federico, 2021/03/30
- [PATCH v3 05/12] target/hexagon: make helper functions non-static,
Alessandro Di Federico <=
- [PATCH v3 03/12] target/hexagon: import README for idef-parser, Alessandro Di Federico, 2021/03/30
- [PATCH v3 08/12] target/hexagon: prepare input for the idef-parser, Alessandro Di Federico, 2021/03/30
- [PATCH v3 09/12] target/hexagon: import lexer for idef-parser, Alessandro Di Federico, 2021/03/30
- [PATCH v3 06/12] target/hexagon: introduce new helper functions, Alessandro Di Federico, 2021/03/30
- [PATCH v3 11/12] target/hexagon: call idef-parser functions, Alessandro Di Federico, 2021/03/30
- [PATCH v3 10/12] target/hexagon: import parser for idef-parser, Alessandro Di Federico, 2021/03/30
- [PATCH v3 12/12] target/hexagon: import additional tests, Alessandro Di Federico, 2021/03/30
- Re: [PATCH v3 00/12] target/hexagon: introduce idef-parser, no-reply, 2021/03/30