mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-20 02:48:36 +00:00
fcf5ef2ab5
We've currently got 18 architectures in QEMU, and thus 18 target-xxx folders in the root folder of the QEMU source tree. More architectures (e.g. RISC-V, AVR) are likely to be included soon, too, so the main folder of the QEMU sources slowly gets quite overcrowded with the target-xxx folders. To disburden the main folder a little bit, let's move the target-xxx folders into a dedicated target/ folder, so that target-xxx/ simply becomes target/xxx/ instead. Acked-by: Laurent Vivier <laurent@vivier.eu> [m68k part] Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> [tricore part] Acked-by: Michael Walle <michael@walle.cc> [lm32 part] Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x part] Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> [s390x part] Acked-by: Eduardo Habkost <ehabkost@redhat.com> [i386 part] Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> [sparc part] Acked-by: Richard Henderson <rth@twiddle.net> [alpha part] Acked-by: Max Filippov <jcmvbkbc@gmail.com> [xtensa part] Reviewed-by: David Gibson <david@gibson.dropbear.id.au> [ppc part] Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [crisµblaze part] Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32 part] Signed-off-by: Thomas Huth <thuth@redhat.com>
166 lines
5.9 KiB
C
166 lines
5.9 KiB
C
#define _GEN_DFP_LONG(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3B, op1, op2, mask, PPC_NONE, PPC2_DFP)
|
|
|
|
#define _GEN_DFP_LONG_300(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3B, op1, op2, mask, PPC_NONE, PPC2_ISA300)
|
|
|
|
#define _GEN_DFP_LONGx2(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3B, op1, 0x00 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3B, op1, 0x10 | op2, mask, PPC_NONE, PPC2_DFP)
|
|
|
|
#define _GEN_DFP_LONGx4(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3B, op1, 0x00 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3B, op1, 0x08 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3B, op1, 0x10 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3B, op1, 0x18 | op2, mask, PPC_NONE, PPC2_DFP)
|
|
|
|
#define _GEN_DFP_QUAD(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3F, op1, op2, mask, PPC_NONE, PPC2_DFP)
|
|
|
|
#define _GEN_DFP_QUAD_300(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3F, op1, op2, mask, PPC_NONE, PPC2_ISA300)
|
|
|
|
#define _GEN_DFP_QUADx2(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3F, op1, 0x00 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3F, op1, 0x10 | op2, mask, PPC_NONE, PPC2_DFP)
|
|
|
|
#define _GEN_DFP_QUADx4(name, op1, op2, mask) \
|
|
GEN_HANDLER_E(name, 0x3F, op1, 0x00 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3F, op1, 0x08 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3F, op1, 0x10 | op2, mask, PPC_NONE, PPC2_DFP), \
|
|
GEN_HANDLER_E(name, 0x3F, op1, 0x18 | op2, mask, PPC_NONE, PPC2_DFP)
|
|
|
|
#define GEN_DFP_T_A_B_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONG(name, op1, op2, 0x00000000)
|
|
|
|
#define GEN_DFP_Tp_Ap_Bp_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x00210800)
|
|
|
|
#define GEN_DFP_Tp_A_Bp_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x00200800)
|
|
|
|
#define GEN_DFP_T_B_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONG(name, op1, op2, 0x001F0000)
|
|
|
|
#define GEN_DFP_Tp_Bp_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x003F0800)
|
|
|
|
#define GEN_DFP_Tp_B_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x003F0000)
|
|
|
|
#define GEN_DFP_T_Bp_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x001F0800)
|
|
|
|
#define GEN_DFP_BF_A_B(name, op1, op2) \
|
|
_GEN_DFP_LONG(name, op1, op2, 0x00000001)
|
|
|
|
#define GEN_DFP_BF_A_B_300(name, op1, op2) \
|
|
_GEN_DFP_LONG_300(name, op1, op2, 0x00400001)
|
|
|
|
#define GEN_DFP_BF_Ap_Bp(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x00610801)
|
|
|
|
#define GEN_DFP_BF_A_Bp(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x00600801)
|
|
|
|
#define GEN_DFP_BF_A_Bp_300(name, op1, op2) \
|
|
_GEN_DFP_QUAD_300(name, op1, op2, 0x00400001)
|
|
|
|
#define GEN_DFP_BF_A_DCM(name, op1, op2) \
|
|
_GEN_DFP_LONGx2(name, op1, op2, 0x00600001)
|
|
|
|
#define GEN_DFP_BF_Ap_DCM(name, op1, op2) \
|
|
_GEN_DFP_QUADx2(name, op1, op2, 0x00610001)
|
|
|
|
#define GEN_DFP_T_A_B_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONGx4(name, op1, op2, 0x00000000)
|
|
|
|
#define GEN_DFP_Tp_Ap_Bp_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUADx4(name, op1, op2, 0x02010800)
|
|
|
|
#define GEN_DFP_Tp_A_Bp_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUADx4(name, op1, op2, 0x02000800)
|
|
|
|
#define GEN_DFP_TE_T_B_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONGx4(name, op1, op2, 0x00000000)
|
|
|
|
#define GEN_DFP_TE_Tp_Bp_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUADx4(name, op1, op2, 0x00200800)
|
|
|
|
#define GEN_DFP_R_T_B_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONGx4(name, op1, op2, 0x001E0000)
|
|
|
|
#define GEN_DFP_R_Tp_Bp_RMC_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUADx4(name, op1, op2, 0x003E0800)
|
|
|
|
#define GEN_DFP_SP_T_B_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONG(name, op1, op2, 0x00070000)
|
|
|
|
#define GEN_DFP_SP_Tp_Bp_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x00270800)
|
|
|
|
#define GEN_DFP_S_T_B_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONG(name, op1, op2, 0x000F0000)
|
|
|
|
#define GEN_DFP_S_Tp_Bp_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUAD(name, op1, op2, 0x002F0800)
|
|
|
|
#define GEN_DFP_T_A_SH_Rc(name, op1, op2) \
|
|
_GEN_DFP_LONGx2(name, op1, op2, 0x00000000)
|
|
|
|
#define GEN_DFP_Tp_Ap_SH_Rc(name, op1, op2) \
|
|
_GEN_DFP_QUADx2(name, op1, op2, 0x00210000)
|
|
|
|
GEN_DFP_T_A_B_Rc(dadd, 0x02, 0x00),
|
|
GEN_DFP_Tp_Ap_Bp_Rc(daddq, 0x02, 0x00),
|
|
GEN_DFP_T_A_B_Rc(dsub, 0x02, 0x10),
|
|
GEN_DFP_Tp_Ap_Bp_Rc(dsubq, 0x02, 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