]> git.proxmox.com Git - mirror_qemu.git/blob - target/hexagon/op_helper.h
Merge tag 'for_upstream' of https://git.kernel.org/pub/scm/virt/kvm/mst/qemu into...
[mirror_qemu.git] / target / hexagon / op_helper.h
1 /*
2 * Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef HEXAGON_OP_HELPER_H
19 #define HEXAGON_OP_HELPER_H
20
21 /* Misc functions */
22 void write_new_pc(CPUHexagonState *env, bool pkt_has_multi_cof, target_ulong addr);
23
24 uint8_t mem_load1(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
25 uint16_t mem_load2(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
26 uint32_t mem_load4(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
27 uint64_t mem_load8(CPUHexagonState *env, uint32_t slot, target_ulong vaddr);
28
29 void log_reg_write(CPUHexagonState *env, int rnum,
30 target_ulong val);
31 void log_store64(CPUHexagonState *env, target_ulong addr,
32 int64_t val, int width, int slot);
33 void log_store32(CPUHexagonState *env, target_ulong addr,
34 target_ulong val, int width, int slot);
35
36 #endif