target/loongarch: Add floating point comparison instruction translation
[qemu.git] / target / loongarch / internals.h
blob1a3b39e0be75c83b61c6d1fda8233cd288bb5acd
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * QEMU LoongArch CPU -- internal functions and types
5 * Copyright (c) 2021 Loongson Technology Corporation Limited
6 */
8 #ifndef LOONGARCH_INTERNALS_H
9 #define LOONGARCH_INTERNALS_H
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 */
16 void loongarch_translate_init(void);
18 void loongarch_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
20 void G_NORETURN do_raise_exception(CPULoongArchState *env,
21 uint32_t exception,
22 uintptr_t pc);
24 const char *loongarch_exception_name(int32_t exception);
26 void restore_fp_status(CPULoongArchState *env);
28 #endif