mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target/loongarch: Add floating point comparison instruction translation
This includes: - FCMP.cond.{S/D} Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220606124333.2060567-12-yangxiaojuan@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
d578ca6cbb
commit
9b7410763a
6 changed files with 139 additions and 0 deletions
|
@ -8,6 +8,11 @@
|
|||
#ifndef LOONGARCH_INTERNALS_H
|
||||
#define LOONGARCH_INTERNALS_H
|
||||
|
||||
#define FCMP_LT 0b0001 /* fp0 < fp1 */
|
||||
#define FCMP_EQ 0b0010 /* fp0 = fp1 */
|
||||
#define FCMP_UN 0b0100 /* unordered */
|
||||
#define FCMP_GT 0b1000 /* fp0 > fp1 */
|
||||
|
||||
void loongarch_translate_init(void);
|
||||
|
||||
void loongarch_cpu_dump_state(CPUState *cpu, FILE *f, int flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue