1830a7230SPhilippe Mathieu-Daudé /* 2830a7230SPhilippe Mathieu-Daudé * Helpers for emulation of FPU-related MIPS instructions. 3830a7230SPhilippe Mathieu-Daudé * 4830a7230SPhilippe Mathieu-Daudé * Copyright (C) 2004-2005 Jocelyn Mayer 5830a7230SPhilippe Mathieu-Daudé * 6830a7230SPhilippe Mathieu-Daudé * SPDX-License-Identifier: LGPL-2.1-or-later 7830a7230SPhilippe Mathieu-Daudé */ 8830a7230SPhilippe Mathieu-Daudé #include "qemu/osdep.h" 9830a7230SPhilippe Mathieu-Daudé #include "fpu/softfloat-helpers.h" 10830a7230SPhilippe Mathieu-Daudé #include "fpu_helper.h" 11830a7230SPhilippe Mathieu-Daudé 12830a7230SPhilippe Mathieu-Daudé /* convert MIPS rounding mode in FCR31 to IEEE library */ 13830a7230SPhilippe Mathieu-Daudé const FloatRoundMode ieee_rm[4] = { 14830a7230SPhilippe Mathieu-Daudé float_round_nearest_even, 15830a7230SPhilippe Mathieu-Daudé float_round_to_zero, 16830a7230SPhilippe Mathieu-Daudé float_round_up, 17830a7230SPhilippe Mathieu-Daudé float_round_down 18830a7230SPhilippe Mathieu-Daudé }; 19adbf1be3SPhilippe Mathieu-Daudé 20*830b87eaSPhilippe Mathieu-Daudé const char fregnames[32][4] = { 21adbf1be3SPhilippe Mathieu-Daudé "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", 22adbf1be3SPhilippe Mathieu-Daudé "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", 23adbf1be3SPhilippe Mathieu-Daudé "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", 24adbf1be3SPhilippe Mathieu-Daudé "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", 25adbf1be3SPhilippe Mathieu-Daudé }; 26