aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon/translate.h
diff options
context:
space:
mode:
authorTaylor Simpson <tsimpson@quicinc.com>2023-04-27 16:00:09 -0700
committerTaylor Simpson <tsimpson@quicinc.com>2023-05-18 12:40:52 -0700
commite22edc7c1df59607dea3cf3d8529097ae38e3ae0 (patch)
treee173f8459e83e7529fc5705c08ce2d6feb62f30e /target/hexagon/translate.h
parent4ff5676474cff9afd02c4755d97b0438e764f9d9 (diff)
downloadqemu-e22edc7c1df59607dea3cf3d8529097ae38e3ae0.zip
qemu-e22edc7c1df59607dea3cf3d8529097ae38e3ae0.tar.gz
qemu-e22edc7c1df59607dea3cf3d8529097ae38e3ae0.tar.bz2
Hexagon (target/hexagon) Move new_pred_value to DisasContext
The new_pred_value array in the CPUHexagonState is only used for bookkeeping within the translation of a packet. With recent changes that eliminate the need to free TCGv variables, these make more sense to be transient and kept in DisasContext. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230427230012.3800327-19-tsimpson@quicinc.com>
Diffstat (limited to 'target/hexagon/translate.h')
-rw-r--r--target/hexagon/translate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hexagon/translate.h b/target/hexagon/translate.h
index 6dde487..fdfa1b6 100644
--- a/target/hexagon/translate.h
+++ b/target/hexagon/translate.h
@@ -70,6 +70,7 @@ typedef struct DisasContext {
bool short_circuit;
bool has_hvx_helper;
TCGv new_value[TOTAL_PER_THREAD_REGS];
+ TCGv new_pred_value[NUM_PREGS];
} DisasContext;
static inline void ctx_log_pred_write(DisasContext *ctx, int pnum)
@@ -193,7 +194,6 @@ extern TCGv hex_slot_cancelled;
extern TCGv hex_branch_taken;
extern TCGv hex_new_value_usr;
extern TCGv hex_reg_written[TOTAL_PER_THREAD_REGS];
-extern TCGv hex_new_pred_value[NUM_PREGS];
extern TCGv hex_pred_written;
extern TCGv hex_store_addr[STORES_MAX];
extern TCGv hex_store_width[STORES_MAX];