]> git.proxmox.com Git - mirror_qemu.git/blame - target/loongarch/internals.h
target/loongarch: Add basic vmstate description of CPU.
[mirror_qemu.git] / target / loongarch / internals.h
CommitLineData
228021f0
SG
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * QEMU LoongArch CPU -- internal functions and types
4 *
5 * Copyright (c) 2021 Loongson Technology Corporation Limited
6 */
7
8#ifndef LOONGARCH_INTERNALS_H
9#define LOONGARCH_INTERNALS_H
10
9b741076
SG
11#define FCMP_LT 0b0001 /* fp0 < fp1 */
12#define FCMP_EQ 0b0010 /* fp0 = fp1 */
13#define FCMP_UN 0b0100 /* unordered */
14#define FCMP_GT 0b1000 /* fp0 > fp1 */
15
228021f0
SG
16void loongarch_translate_init(void);
17
18void loongarch_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
19
20void G_NORETURN do_raise_exception(CPULoongArchState *env,
21 uint32_t exception,
22 uintptr_t pc);
23
24const char *loongarch_exception_name(int32_t exception);
25
d578ca6c
SG
26void restore_fp_status(CPULoongArchState *env);
27
67ebd42a
XY
28extern const VMStateDescription vmstate_loongarch_cpu;
29
228021f0 30#endif