From: Alessandro Di Federico via <qemu-devel@nongnu.org>
To: qemu-devel@nongnu.org
Cc: tsimpson@quicinc.com, bcain@quicinc.com, babush@rev.ng,
nizzo@rev.ng, philmd@redhat.com, richard.henderson@linaro.org,
Alessandro Di Federico <ale@rev.ng>
Subject: [PATCH v3 04/12] target/hexagon: make slot number an unsigned
Date: Tue, 30 Mar 2021 16:37:42 +0200 [thread overview]
Message-ID: <20210330143750.3037824-5-ale.qemu@rev.ng> (raw)
In-Reply-To: <20210330143750.3037824-1-ale.qemu@rev.ng>
From: Paolo Montesel <babush@rev.ng>
Signed-off-by: Alessandro Di Federico <ale@rev.ng>
Signed-off-by: Paolo Montesel <babush@rev.ng>
---
target/hexagon/genptr.c | 6 ++++--
target/hexagon/macros.h | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/target/hexagon/genptr.c b/target/hexagon/genptr.c
index 7481f4c1dd..fd18aabe8d 100644
--- a/target/hexagon/genptr.c
+++ b/target/hexagon/genptr.c
@@ -33,7 +33,8 @@ static inline TCGv gen_read_preg(TCGv pred, uint8_t num)
return pred;
}
-static inline void gen_log_predicated_reg_write(int rnum, TCGv val, int slot)
+static inline void gen_log_predicated_reg_write(int rnum, TCGv val,
+ unsigned slot)
{
TCGv one = tcg_const_tl(1);
TCGv zero = tcg_const_tl(0);
@@ -62,7 +63,8 @@ static inline void gen_log_reg_write(int rnum, TCGv val)
#endif
}
-static void gen_log_predicated_reg_write_pair(int rnum, TCGv_i64 val, int slot)
+static void gen_log_predicated_reg_write_pair(int rnum, TCGv_i64 val,
+ unsigned slot)
{
TCGv val32 = tcg_temp_new();
TCGv one = tcg_const_tl(1);
diff --git a/target/hexagon/macros.h b/target/hexagon/macros.h
index cfcb8173ba..d9473c8823 100644
--- a/target/hexagon/macros.h
+++ b/target/hexagon/macros.h
@@ -154,7 +154,7 @@
#define LOAD_CANCEL(EA) do { CANCEL; } while (0)
#ifdef QEMU_GENERATE
-static inline void gen_pred_cancel(TCGv pred, int slot_num)
+static inline void gen_pred_cancel(TCGv pred, unsigned slot_num)
{
TCGv slot_mask = tcg_const_tl(1 << slot_num);
TCGv tmp = tcg_temp_new();
--
2.31.1
next prev parent reply other threads:[~2021-03-30 14:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 14:37 [PATCH v3 00/12] target/hexagon: introduce idef-parser Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 01/12] tcg: expose TCGCond manipulation routines Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 02/12] target/hexagon: update MAINTAINERS for idef-parser Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 03/12] target/hexagon: import README " Alessandro Di Federico via
2021-03-30 14:37 ` Alessandro Di Federico via [this message]
2021-03-30 14:37 ` [PATCH v3 05/12] target/hexagon: make helper functions non-static Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 06/12] target/hexagon: introduce new helper functions Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 07/12] target/hexagon: expose next PC in DisasContext Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 08/12] target/hexagon: prepare input for the idef-parser Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 09/12] target/hexagon: import lexer for idef-parser Alessandro Di Federico via
2021-04-27 2:11 ` Taylor Simpson
2021-04-28 10:40 ` Paolo Montesel
2021-04-28 15:47 ` Taylor Simpson
2021-03-30 14:37 ` [PATCH v3 10/12] target/hexagon: import parser " Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 11/12] target/hexagon: call idef-parser functions Alessandro Di Federico via
2021-03-30 14:37 ` [PATCH v3 12/12] target/hexagon: import additional tests Alessandro Di Federico via
2021-03-30 15:57 ` [PATCH v3 00/12] target/hexagon: introduce idef-parser no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210330143750.3037824-5-ale.qemu@rev.ng \
--to=qemu-devel@nongnu.org \
--cc=ale.qemu@rev.ng \
--cc=ale@rev.ng \
--cc=babush@rev.ng \
--cc=bcain@quicinc.com \
--cc=nizzo@rev.ng \
--cc=philmd@redhat.com \
--cc=richard.henderson@linaro.org \
--cc=tsimpson@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).