Revision | 07565cbf4abb81efa6dc4742c243bdc4b3444398 (tree) |
---|---|
Zeit | 2021-08-25 20:02:14 |
Autor | Philippe Mathieu-Daudé <f4bug@amsa...> |
Commiter | Philippe Mathieu-Daudé |
target/mips: Extract NEC Vr54xx helper definitions
Extract the NEC Vr54xx helper definitions to
'vendor-vr54xx_helper.h'.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201120210844.2625602-15-f4bug@amsat.org>
@@ -16,21 +16,6 @@ DEF_HELPER_3(lld, tl, env, tl, int) | ||
16 | 16 | #endif |
17 | 17 | #endif |
18 | 18 | |
19 | -DEF_HELPER_3(muls, tl, env, tl, tl) | |
20 | -DEF_HELPER_3(mulsu, tl, env, tl, tl) | |
21 | -DEF_HELPER_3(macc, tl, env, tl, tl) | |
22 | -DEF_HELPER_3(maccu, tl, env, tl, tl) | |
23 | -DEF_HELPER_3(msac, tl, env, tl, tl) | |
24 | -DEF_HELPER_3(msacu, tl, env, tl, tl) | |
25 | -DEF_HELPER_3(mulhi, tl, env, tl, tl) | |
26 | -DEF_HELPER_3(mulhiu, tl, env, tl, tl) | |
27 | -DEF_HELPER_3(mulshi, tl, env, tl, tl) | |
28 | -DEF_HELPER_3(mulshiu, tl, env, tl, tl) | |
29 | -DEF_HELPER_3(macchi, tl, env, tl, tl) | |
30 | -DEF_HELPER_3(macchiu, tl, env, tl, tl) | |
31 | -DEF_HELPER_3(msachi, tl, env, tl, tl) | |
32 | -DEF_HELPER_3(msachiu, tl, env, tl, tl) | |
33 | - | |
34 | 19 | DEF_HELPER_FLAGS_1(bitswap, TCG_CALL_NO_RWG_SE, tl, tl) |
35 | 20 | #ifdef TARGET_MIPS64 |
36 | 21 | DEF_HELPER_FLAGS_1(dbitswap, TCG_CALL_NO_RWG_SE, tl, tl) |
@@ -609,3 +594,6 @@ DEF_HELPER_FLAGS_2(rddsp, 0, tl, tl, env) | ||
609 | 594 | #endif /* !CONFIG_USER_ONLY */ |
610 | 595 | |
611 | 596 | #include "tcg/msa_helper.h.inc" |
597 | + | |
598 | +/* Vendor extensions */ | |
599 | +#include "tcg/vr54xx_helper.h.inc" |
@@ -0,0 +1,24 @@ | ||
1 | +/* | |
2 | + * MIPS NEC Vr54xx instruction emulation helpers for QEMU. | |
3 | + * | |
4 | + * Copyright (c) 2004-2005 Jocelyn Mayer | |
5 | + * Copyright (c) 2006 Marius Groeger (FPU operations) | |
6 | + * Copyright (c) 2006 Thiemo Seufer (MIPS32R2 support) | |
7 | + * | |
8 | + * SPDX-License-Identifier: LGPL-2.1-or-later | |
9 | + */ | |
10 | + | |
11 | +DEF_HELPER_3(muls, tl, env, tl, tl) | |
12 | +DEF_HELPER_3(mulsu, tl, env, tl, tl) | |
13 | +DEF_HELPER_3(macc, tl, env, tl, tl) | |
14 | +DEF_HELPER_3(maccu, tl, env, tl, tl) | |
15 | +DEF_HELPER_3(msac, tl, env, tl, tl) | |
16 | +DEF_HELPER_3(msacu, tl, env, tl, tl) | |
17 | +DEF_HELPER_3(mulhi, tl, env, tl, tl) | |
18 | +DEF_HELPER_3(mulhiu, tl, env, tl, tl) | |
19 | +DEF_HELPER_3(mulshi, tl, env, tl, tl) | |
20 | +DEF_HELPER_3(mulshiu, tl, env, tl, tl) | |
21 | +DEF_HELPER_3(macchi, tl, env, tl, tl) | |
22 | +DEF_HELPER_3(macchiu, tl, env, tl, tl) | |
23 | +DEF_HELPER_3(msachi, tl, env, tl, tl) | |
24 | +DEF_HELPER_3(msachiu, tl, env, tl, tl) |