aboutsummaryrefslogtreecommitdiff
path: root/target/hexagon/op_helper.h
diff options
context:
space:
mode:
authorPaolo Montesel <babush@rev.ng>2022-09-23 19:38:24 +0200
committerTaylor Simpson <tsimpson@quicinc.com>2022-12-16 11:36:33 -0800
commit7e8b3b395fc39218d5a0b5122167d9249f4658f9 (patch)
tree9bc80e28c17d3a35b72bc009d55e349afb4ab088 /target/hexagon/op_helper.h
parentd909808ec002abee64209a967d636878afe280b5 (diff)
downloadqemu-7e8b3b395fc39218d5a0b5122167d9249f4658f9.zip
qemu-7e8b3b395fc39218d5a0b5122167d9249f4658f9.tar.gz
qemu-7e8b3b395fc39218d5a0b5122167d9249f4658f9.tar.bz2
target/hexagon: make helper functions non-static
Make certain helper functions non-static, making them available outside genptr.c. These functions are required by code generated by the idef-parser. This commit also makes some functions in op_helper.c non-static in order to avoid having them marked as unused when using the idef-parser generated code. Signed-off-by: Alessandro Di Federico <ale@rev.ng> Signed-off-by: Paolo Montesel <babush@rev.ng> Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Message-Id: <20220923173831.227551-5-anjo@rev.ng>
Diffstat (limited to 'target/hexagon/op_helper.h')
-rw-r--r--target/hexagon/op_helper.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/hexagon/op_helper.h b/target/hexagon/op_helper.h
new file mode 100644
index 0000000..02347ed
--- /dev/null
+++ b/target/hexagon/op_helper.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef HEXAGON_OP_HELPER_H
+#define HEXAGON_OP_HELPER_H
+
+/* Misc functions */
+void cancel_slot(CPUHexagonState *env, uint32_t slot);
+void write_new_pc(CPUHexagonState *env, bool pkt_has_multi_cof, target_ulong addr);
+
+uint8_t mem_load1(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
+uint16_t mem_load2(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
+uint32_t mem_load4(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
+uint64_t mem_load8(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
+
+void log_reg_write(CPUHexagonState *env, int rnum,
+ target_ulong val, uint32_t slot);
+void log_store64(CPUHexagonState *env, target_ulong addr,
+ int64_t val, int width, int slot);
+void log_store32(CPUHexagonState *env, target_ulong addr,
+ target_ulong val, int width, int slot);
+
+#endif