xref: /openbmc/qemu/target/hexagon/op_helper.h (revision f6b0de53)
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 uint8_t mem_load1(CPUHexagonState *env, bool pkt_has_store_s1,
23                   uint32_t slot, target_ulong vaddr);
24 uint16_t mem_load2(CPUHexagonState *env, bool pkt_has_store_s1,
25                    uint32_t slot, target_ulong vaddr);
26 uint32_t mem_load4(CPUHexagonState *env, bool pkt_has_store_s1,
27                    uint32_t slot, target_ulong vaddr);
28 uint64_t mem_load8(CPUHexagonState *env, bool pkt_has_store_s1,
29                    uint32_t slot, target_ulong vaddr);
30 
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
37