summaryrefslogtreecommitdiff
path: root/src/core/arm/skyeye_common
diff options
context:
space:
mode:
authorGravatar Lioncash2015-05-14 11:51:46 -0400
committerGravatar Lioncash2015-05-14 11:51:46 -0400
commitf3c4de4ce4effbc121d7cc96f12ae18ab9d9b043 (patch)
treeb536fcf7df3b3e1da2ef704a4cebf4f3a7ffa9e1 /src/core/arm/skyeye_common
parentdyncom: Remove unused structs (diff)
downloadyuzu-f3c4de4ce4effbc121d7cc96f12ae18ab9d9b043.tar.gz
yuzu-f3c4de4ce4effbc121d7cc96f12ae18ab9d9b043.tar.xz
yuzu-f3c4de4ce4effbc121d7cc96f12ae18ab9d9b043.zip
dyncom: Remove unnecessary typedefs
Diffstat (limited to 'src/core/arm/skyeye_common')
-rw-r--r--src/core/arm/skyeye_common/vfp/vfpinstr.cpp128
1 files changed, 64 insertions, 64 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfpinstr.cpp b/src/core/arm/skyeye_common/vfp/vfpinstr.cpp
index 72afe2164..a04bf915c 100644
--- a/src/core/arm/skyeye_common/vfp/vfpinstr.cpp
+++ b/src/core/arm/skyeye_common/vfp/vfpinstr.cpp
@@ -13,10 +13,10 @@
13/* VMLA */ 13/* VMLA */
14/* cond 1110 0D00 Vn-- Vd-- 101X N0M0 Vm-- */ 14/* cond 1110 0D00 Vn-- Vd-- 101X N0M0 Vm-- */
15#ifdef VFP_INTERPRETER_STRUCT 15#ifdef VFP_INTERPRETER_STRUCT
16typedef struct _vmla_inst { 16struct vmla_inst {
17 unsigned int instr; 17 unsigned int instr;
18 unsigned int dp_operation; 18 unsigned int dp_operation;
19} vmla_inst; 19};
20#endif 20#endif
21#ifdef VFP_INTERPRETER_TRANS 21#ifdef VFP_INTERPRETER_TRANS
22static ARM_INST_PTR INTERPRETER_TRANSLATE(vmla)(unsigned int inst, int index) 22static ARM_INST_PTR INTERPRETER_TRANSLATE(vmla)(unsigned int inst, int index)
@@ -63,10 +63,10 @@ VMLA_INST:
63/* VNMLS */ 63/* VNMLS */
64/* cond 1110 0D00 Vn-- Vd-- 101X N1M0 Vm-- */ 64/* cond 1110 0D00 Vn-- Vd-- 101X N1M0 Vm-- */
65#ifdef VFP_INTERPRETER_STRUCT 65#ifdef VFP_INTERPRETER_STRUCT
66typedef struct _vmls_inst { 66struct vmls_inst {
67 unsigned int instr; 67 unsigned int instr;
68 unsigned int dp_operation; 68 unsigned int dp_operation;
69} vmls_inst; 69};
70#endif 70#endif
71#ifdef VFP_INTERPRETER_TRANS 71#ifdef VFP_INTERPRETER_TRANS
72static ARM_INST_PTR INTERPRETER_TRANSLATE(vmls)(unsigned int inst, int index) 72static ARM_INST_PTR INTERPRETER_TRANSLATE(vmls)(unsigned int inst, int index)
@@ -113,10 +113,10 @@ VMLS_INST:
113/* VNMLA */ 113/* VNMLA */
114/* cond 1110 0D01 Vn-- Vd-- 101X N1M0 Vm-- */ 114/* cond 1110 0D01 Vn-- Vd-- 101X N1M0 Vm-- */
115#ifdef VFP_INTERPRETER_STRUCT 115#ifdef VFP_INTERPRETER_STRUCT
116typedef struct _vnmla_inst { 116struct vnmla_inst {
117 unsigned int instr; 117 unsigned int instr;
118 unsigned int dp_operation; 118 unsigned int dp_operation;
119} vnmla_inst; 119};
120#endif 120#endif
121#ifdef VFP_INTERPRETER_TRANS 121#ifdef VFP_INTERPRETER_TRANS
122static ARM_INST_PTR INTERPRETER_TRANSLATE(vnmla)(unsigned int inst, int index) 122static ARM_INST_PTR INTERPRETER_TRANSLATE(vnmla)(unsigned int inst, int index)
@@ -164,10 +164,10 @@ VNMLA_INST:
164/* cond 1110 0D01 Vn-- Vd-- 101X N0M0 Vm-- */ 164/* cond 1110 0D01 Vn-- Vd-- 101X N0M0 Vm-- */
165 165
166#ifdef VFP_INTERPRETER_STRUCT 166#ifdef VFP_INTERPRETER_STRUCT
167typedef struct _vnmls_inst { 167struct vnmls_inst {
168 unsigned int instr; 168 unsigned int instr;
169 unsigned int dp_operation; 169 unsigned int dp_operation;
170} vnmls_inst; 170};
171#endif 171#endif
172#ifdef VFP_INTERPRETER_TRANS 172#ifdef VFP_INTERPRETER_TRANS
173static ARM_INST_PTR INTERPRETER_TRANSLATE(vnmls)(unsigned int inst, int index) 173static ARM_INST_PTR INTERPRETER_TRANSLATE(vnmls)(unsigned int inst, int index)
@@ -214,10 +214,10 @@ VNMLS_INST:
214/* VNMUL */ 214/* VNMUL */
215/* cond 1110 0D10 Vn-- Vd-- 101X N0M0 Vm-- */ 215/* cond 1110 0D10 Vn-- Vd-- 101X N0M0 Vm-- */
216#ifdef VFP_INTERPRETER_STRUCT 216#ifdef VFP_INTERPRETER_STRUCT
217typedef struct _vnmul_inst { 217struct vnmul_inst {
218 unsigned int instr; 218 unsigned int instr;
219 unsigned int dp_operation; 219 unsigned int dp_operation;
220} vnmul_inst; 220};
221#endif 221#endif
222#ifdef VFP_INTERPRETER_TRANS 222#ifdef VFP_INTERPRETER_TRANS
223static ARM_INST_PTR INTERPRETER_TRANSLATE(vnmul)(unsigned int inst, int index) 223static ARM_INST_PTR INTERPRETER_TRANSLATE(vnmul)(unsigned int inst, int index)
@@ -264,10 +264,10 @@ VNMUL_INST:
264/* VMUL */ 264/* VMUL */
265/* cond 1110 0D10 Vn-- Vd-- 101X N0M0 Vm-- */ 265/* cond 1110 0D10 Vn-- Vd-- 101X N0M0 Vm-- */
266#ifdef VFP_INTERPRETER_STRUCT 266#ifdef VFP_INTERPRETER_STRUCT
267typedef struct _vmul_inst { 267struct vmul_inst {
268 unsigned int instr; 268 unsigned int instr;
269 unsigned int dp_operation; 269 unsigned int dp_operation;
270} vmul_inst; 270};
271#endif 271#endif
272#ifdef VFP_INTERPRETER_TRANS 272#ifdef VFP_INTERPRETER_TRANS
273static ARM_INST_PTR INTERPRETER_TRANSLATE(vmul)(unsigned int inst, int index) 273static ARM_INST_PTR INTERPRETER_TRANSLATE(vmul)(unsigned int inst, int index)
@@ -314,10 +314,10 @@ VMUL_INST:
314/* VADD */ 314/* VADD */
315/* cond 1110 0D11 Vn-- Vd-- 101X N0M0 Vm-- */ 315/* cond 1110 0D11 Vn-- Vd-- 101X N0M0 Vm-- */
316#ifdef VFP_INTERPRETER_STRUCT 316#ifdef VFP_INTERPRETER_STRUCT
317typedef struct _vadd_inst { 317struct vadd_inst {
318 unsigned int instr; 318 unsigned int instr;
319 unsigned int dp_operation; 319 unsigned int dp_operation;
320} vadd_inst; 320};
321#endif 321#endif
322#ifdef VFP_INTERPRETER_TRANS 322#ifdef VFP_INTERPRETER_TRANS
323static ARM_INST_PTR INTERPRETER_TRANSLATE(vadd)(unsigned int inst, int index) 323static ARM_INST_PTR INTERPRETER_TRANSLATE(vadd)(unsigned int inst, int index)
@@ -364,10 +364,10 @@ VADD_INST:
364/* VSUB */ 364/* VSUB */
365/* cond 1110 0D11 Vn-- Vd-- 101X N1M0 Vm-- */ 365/* cond 1110 0D11 Vn-- Vd-- 101X N1M0 Vm-- */
366#ifdef VFP_INTERPRETER_STRUCT 366#ifdef VFP_INTERPRETER_STRUCT
367typedef struct _vsub_inst { 367struct vsub_inst {
368 unsigned int instr; 368 unsigned int instr;
369 unsigned int dp_operation; 369 unsigned int dp_operation;
370} vsub_inst; 370};
371#endif 371#endif
372#ifdef VFP_INTERPRETER_TRANS 372#ifdef VFP_INTERPRETER_TRANS
373static ARM_INST_PTR INTERPRETER_TRANSLATE(vsub)(unsigned int inst, int index) 373static ARM_INST_PTR INTERPRETER_TRANSLATE(vsub)(unsigned int inst, int index)
@@ -414,10 +414,10 @@ VSUB_INST:
414/* VDIV */ 414/* VDIV */
415/* cond 1110 1D00 Vn-- Vd-- 101X N0M0 Vm-- */ 415/* cond 1110 1D00 Vn-- Vd-- 101X N0M0 Vm-- */
416#ifdef VFP_INTERPRETER_STRUCT 416#ifdef VFP_INTERPRETER_STRUCT
417typedef struct _vdiv_inst { 417struct vdiv_inst {
418 unsigned int instr; 418 unsigned int instr;
419 unsigned int dp_operation; 419 unsigned int dp_operation;
420} vdiv_inst; 420};
421#endif 421#endif
422#ifdef VFP_INTERPRETER_TRANS 422#ifdef VFP_INTERPRETER_TRANS
423static ARM_INST_PTR INTERPRETER_TRANSLATE(vdiv)(unsigned int inst, int index) 423static ARM_INST_PTR INTERPRETER_TRANSLATE(vdiv)(unsigned int inst, int index)
@@ -465,11 +465,11 @@ VDIV_INST:
465/* cond 1110 1D11 im4H Vd-- 101X 0000 im4L */ 465/* cond 1110 1D11 im4H Vd-- 101X 0000 im4L */
466/* cond 1110 opc1 CRn- CRd- copr op20 CRm- CDP */ 466/* cond 1110 opc1 CRn- CRd- copr op20 CRm- CDP */
467#ifdef VFP_INTERPRETER_STRUCT 467#ifdef VFP_INTERPRETER_STRUCT
468typedef struct _vmovi_inst { 468struct vmovi_inst {
469 unsigned int single; 469 unsigned int single;
470 unsigned int d; 470 unsigned int d;
471 unsigned int imm; 471 unsigned int imm;
472} vmovi_inst; 472};
473#endif 473#endif
474#ifdef VFP_INTERPRETER_TRANS 474#ifdef VFP_INTERPRETER_TRANS
475static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovi)(unsigned int inst, int index) 475static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovi)(unsigned int inst, int index)
@@ -514,11 +514,11 @@ VMOVI_INST:
514/* cond 1110 1D11 0000 Vd-- 101X 01M0 Vm-- */ 514/* cond 1110 1D11 0000 Vd-- 101X 01M0 Vm-- */
515/* cond 1110 opc1 CRn- CRd- copr op20 CRm- CDP */ 515/* cond 1110 opc1 CRn- CRd- copr op20 CRm- CDP */
516#ifdef VFP_INTERPRETER_STRUCT 516#ifdef VFP_INTERPRETER_STRUCT
517typedef struct _vmovr_inst { 517struct vmovr_inst {
518 unsigned int single; 518 unsigned int single;
519 unsigned int d; 519 unsigned int d;
520 unsigned int m; 520 unsigned int m;
521} vmovr_inst; 521};
522#endif 522#endif
523#ifdef VFP_INTERPRETER_TRANS 523#ifdef VFP_INTERPRETER_TRANS
524static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovr)(unsigned int inst, int index) 524static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovr)(unsigned int inst, int index)
@@ -609,10 +609,10 @@ VABS_INST:
609/* cond 1110 1D11 0001 Vd-- 101X 11M0 Vm-- */ 609/* cond 1110 1D11 0001 Vd-- 101X 11M0 Vm-- */
610 610
611#ifdef VFP_INTERPRETER_STRUCT 611#ifdef VFP_INTERPRETER_STRUCT
612typedef struct _vneg_inst { 612struct vneg_inst {
613 unsigned int instr; 613 unsigned int instr;
614 unsigned int dp_operation; 614 unsigned int dp_operation;
615} vneg_inst; 615};
616#endif 616#endif
617#ifdef VFP_INTERPRETER_TRANS 617#ifdef VFP_INTERPRETER_TRANS
618static ARM_INST_PTR INTERPRETER_TRANSLATE(vneg)(unsigned int inst, int index) 618static ARM_INST_PTR INTERPRETER_TRANSLATE(vneg)(unsigned int inst, int index)
@@ -659,10 +659,10 @@ VNEG_INST:
659/* VSQRT */ 659/* VSQRT */
660/* cond 1110 1D11 0001 Vd-- 101X 11M0 Vm-- */ 660/* cond 1110 1D11 0001 Vd-- 101X 11M0 Vm-- */
661#ifdef VFP_INTERPRETER_STRUCT 661#ifdef VFP_INTERPRETER_STRUCT
662typedef struct _vsqrt_inst { 662struct vsqrt_inst {
663 unsigned int instr; 663 unsigned int instr;
664 unsigned int dp_operation; 664 unsigned int dp_operation;
665} vsqrt_inst; 665};
666#endif 666#endif
667#ifdef VFP_INTERPRETER_TRANS 667#ifdef VFP_INTERPRETER_TRANS
668static ARM_INST_PTR INTERPRETER_TRANSLATE(vsqrt)(unsigned int inst, int index) 668static ARM_INST_PTR INTERPRETER_TRANSLATE(vsqrt)(unsigned int inst, int index)
@@ -709,10 +709,10 @@ VSQRT_INST:
709/* VCMP VCMPE */ 709/* VCMP VCMPE */
710/* cond 1110 1D11 0100 Vd-- 101X E1M0 Vm-- Encoding 1 */ 710/* cond 1110 1D11 0100 Vd-- 101X E1M0 Vm-- Encoding 1 */
711#ifdef VFP_INTERPRETER_STRUCT 711#ifdef VFP_INTERPRETER_STRUCT
712typedef struct _vcmp_inst { 712struct vcmp_inst {
713 unsigned int instr; 713 unsigned int instr;
714 unsigned int dp_operation; 714 unsigned int dp_operation;
715} vcmp_inst; 715};
716#endif 716#endif
717#ifdef VFP_INTERPRETER_TRANS 717#ifdef VFP_INTERPRETER_TRANS
718static ARM_INST_PTR INTERPRETER_TRANSLATE(vcmp)(unsigned int inst, int index) 718static ARM_INST_PTR INTERPRETER_TRANSLATE(vcmp)(unsigned int inst, int index)
@@ -759,10 +759,10 @@ VCMP_INST:
759/* VCMP VCMPE */ 759/* VCMP VCMPE */
760/* cond 1110 1D11 0100 Vd-- 101X E1M0 Vm-- Encoding 2 */ 760/* cond 1110 1D11 0100 Vd-- 101X E1M0 Vm-- Encoding 2 */
761#ifdef VFP_INTERPRETER_STRUCT 761#ifdef VFP_INTERPRETER_STRUCT
762typedef struct _vcmp2_inst { 762struct vcmp2_inst {
763 unsigned int instr; 763 unsigned int instr;
764 unsigned int dp_operation; 764 unsigned int dp_operation;
765} vcmp2_inst; 765};
766#endif 766#endif
767#ifdef VFP_INTERPRETER_TRANS 767#ifdef VFP_INTERPRETER_TRANS
768static ARM_INST_PTR INTERPRETER_TRANSLATE(vcmp2)(unsigned int inst, int index) 768static ARM_INST_PTR INTERPRETER_TRANSLATE(vcmp2)(unsigned int inst, int index)
@@ -809,10 +809,10 @@ VCMP2_INST:
809/* VCVTBDS between double and single */ 809/* VCVTBDS between double and single */
810/* cond 1110 1D11 0111 Vd-- 101X 11M0 Vm-- */ 810/* cond 1110 1D11 0111 Vd-- 101X 11M0 Vm-- */
811#ifdef VFP_INTERPRETER_STRUCT 811#ifdef VFP_INTERPRETER_STRUCT
812typedef struct _vcvtbds_inst { 812struct vcvtbds_inst {
813 unsigned int instr; 813 unsigned int instr;
814 unsigned int dp_operation; 814 unsigned int dp_operation;
815} vcvtbds_inst; 815};
816#endif 816#endif
817#ifdef VFP_INTERPRETER_TRANS 817#ifdef VFP_INTERPRETER_TRANS
818static ARM_INST_PTR INTERPRETER_TRANSLATE(vcvtbds)(unsigned int inst, int index) 818static ARM_INST_PTR INTERPRETER_TRANSLATE(vcvtbds)(unsigned int inst, int index)
@@ -859,10 +859,10 @@ VCVTBDS_INST:
859/* VCVTBFF between floating point and fixed point */ 859/* VCVTBFF between floating point and fixed point */
860/* cond 1110 1D11 1op2 Vd-- 101X X1M0 Vm-- */ 860/* cond 1110 1D11 1op2 Vd-- 101X X1M0 Vm-- */
861#ifdef VFP_INTERPRETER_STRUCT 861#ifdef VFP_INTERPRETER_STRUCT
862typedef struct _vcvtbff_inst { 862struct vcvtbff_inst {
863 unsigned int instr; 863 unsigned int instr;
864 unsigned int dp_operation; 864 unsigned int dp_operation;
865} vcvtbff_inst; 865};
866#endif 866#endif
867#ifdef VFP_INTERPRETER_TRANS 867#ifdef VFP_INTERPRETER_TRANS
868static ARM_INST_PTR INTERPRETER_TRANSLATE(vcvtbff)(unsigned int inst, int index) 868static ARM_INST_PTR INTERPRETER_TRANSLATE(vcvtbff)(unsigned int inst, int index)
@@ -911,10 +911,10 @@ VCVTBFF_INST:
911/* VCVTBFI between floating point and integer */ 911/* VCVTBFI between floating point and integer */
912/* cond 1110 1D11 1op2 Vd-- 101X X1M0 Vm-- */ 912/* cond 1110 1D11 1op2 Vd-- 101X X1M0 Vm-- */
913#ifdef VFP_INTERPRETER_STRUCT 913#ifdef VFP_INTERPRETER_STRUCT
914typedef struct _vcvtbfi_inst { 914struct vcvtbfi_inst {
915 unsigned int instr; 915 unsigned int instr;
916 unsigned int dp_operation; 916 unsigned int dp_operation;
917} vcvtbfi_inst; 917};
918#endif 918#endif
919#ifdef VFP_INTERPRETER_TRANS 919#ifdef VFP_INTERPRETER_TRANS
920static ARM_INST_PTR INTERPRETER_TRANSLATE(vcvtbfi)(unsigned int inst, int index) 920static ARM_INST_PTR INTERPRETER_TRANSLATE(vcvtbfi)(unsigned int inst, int index)
@@ -967,11 +967,11 @@ VCVTBFI_INST:
967/* cond 1110 000o Vn-- Rt-- 1010 N001 0000 */ 967/* cond 1110 000o Vn-- Rt-- 1010 N001 0000 */
968/* cond 1110 op11 CRn- Rt-- copr op21 CRm- MRC */ 968/* cond 1110 op11 CRn- Rt-- copr op21 CRm- MRC */
969#ifdef VFP_INTERPRETER_STRUCT 969#ifdef VFP_INTERPRETER_STRUCT
970typedef struct _vmovbrs_inst { 970struct vmovbrs_inst {
971 unsigned int to_arm; 971 unsigned int to_arm;
972 unsigned int t; 972 unsigned int t;
973 unsigned int n; 973 unsigned int n;
974} vmovbrs_inst; 974};
975#endif 975#endif
976#ifdef VFP_INTERPRETER_TRANS 976#ifdef VFP_INTERPRETER_TRANS
977static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrs)(unsigned int inst, int index) 977static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrs)(unsigned int inst, int index)
@@ -1013,10 +1013,10 @@ VMOVBRS_INST:
1013/* cond 1110 1110 reg- Rt-- 1010 0001 0000 */ 1013/* cond 1110 1110 reg- Rt-- 1010 0001 0000 */
1014/* cond 1110 op10 CRn- Rt-- copr op21 CRm- MCR */ 1014/* cond 1110 op10 CRn- Rt-- copr op21 CRm- MCR */
1015#ifdef VFP_INTERPRETER_STRUCT 1015#ifdef VFP_INTERPRETER_STRUCT
1016typedef struct _vmsr_inst { 1016struct vmsr_inst {
1017 unsigned int reg; 1017 unsigned int reg;
1018 unsigned int Rd; 1018 unsigned int Rd;
1019} vmsr_inst; 1019};
1020#endif 1020#endif
1021#ifdef VFP_INTERPRETER_TRANS 1021#ifdef VFP_INTERPRETER_TRANS
1022static ARM_INST_PTR INTERPRETER_TRANSLATE(vmsr)(unsigned int inst, int index) 1022static ARM_INST_PTR INTERPRETER_TRANSLATE(vmsr)(unsigned int inst, int index)
@@ -1040,7 +1040,7 @@ VMSR_INST:
1040{ 1040{
1041 if ((inst_base->cond == 0xe) || CondPassed(cpu, inst_base->cond)) { 1041 if ((inst_base->cond == 0xe) || CondPassed(cpu, inst_base->cond)) {
1042 /* FIXME: special case for access to FPSID and FPEXC, VFP must be disabled , 1042 /* FIXME: special case for access to FPSID and FPEXC, VFP must be disabled ,
1043 and in privilegied mode */ 1043 and in privileged mode */
1044 /* Exceptions must be checked, according to v7 ref manual */ 1044 /* Exceptions must be checked, according to v7 ref manual */
1045 CHECK_VFP_ENABLED; 1045 CHECK_VFP_ENABLED;
1046 1046
@@ -1060,12 +1060,12 @@ VMSR_INST:
1060/* cond 1110 0XX0 Vd-- Rt-- 1011 DXX1 0000 */ 1060/* cond 1110 0XX0 Vd-- Rt-- 1011 DXX1 0000 */
1061/* cond 1110 op10 CRn- Rt-- copr op21 CRm- MCR */ 1061/* cond 1110 op10 CRn- Rt-- copr op21 CRm- MCR */
1062#ifdef VFP_INTERPRETER_STRUCT 1062#ifdef VFP_INTERPRETER_STRUCT
1063typedef struct _vmovbrc_inst { 1063struct vmovbrc_inst {
1064 unsigned int esize; 1064 unsigned int esize;
1065 unsigned int index; 1065 unsigned int index;
1066 unsigned int d; 1066 unsigned int d;
1067 unsigned int t; 1067 unsigned int t;
1068} vmovbrc_inst; 1068};
1069#endif 1069#endif
1070#ifdef VFP_INTERPRETER_TRANS 1070#ifdef VFP_INTERPRETER_TRANS
1071static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrc)(unsigned int inst, int index) 1071static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrc)(unsigned int inst, int index)
@@ -1109,10 +1109,10 @@ VMOVBRC_INST:
1109/* cond 1110 1111 CRn- Rt-- 1010 0001 0000 */ 1109/* cond 1110 1111 CRn- Rt-- 1010 0001 0000 */
1110/* cond 1110 op11 CRn- Rt-- copr op21 CRm- MRC */ 1110/* cond 1110 op11 CRn- Rt-- copr op21 CRm- MRC */
1111#ifdef VFP_INTERPRETER_STRUCT 1111#ifdef VFP_INTERPRETER_STRUCT
1112typedef struct _vmrs_inst { 1112struct vmrs_inst {
1113 unsigned int reg; 1113 unsigned int reg;
1114 unsigned int Rt; 1114 unsigned int Rt;
1115} vmrs_inst; 1115};
1116#endif 1116#endif
1117#ifdef VFP_INTERPRETER_TRANS 1117#ifdef VFP_INTERPRETER_TRANS
1118static ARM_INST_PTR INTERPRETER_TRANSLATE(vmrs)(unsigned int inst, int index) 1118static ARM_INST_PTR INTERPRETER_TRANSLATE(vmrs)(unsigned int inst, int index)
@@ -1136,7 +1136,7 @@ VMRS_INST:
1136{ 1136{
1137 if ((inst_base->cond == 0xe) || CondPassed(cpu, inst_base->cond)) { 1137 if ((inst_base->cond == 0xe) || CondPassed(cpu, inst_base->cond)) {
1138 /* FIXME: special case for access to FPSID and FPEXC, VFP must be disabled, 1138 /* FIXME: special case for access to FPSID and FPEXC, VFP must be disabled,
1139 and in privilegied mode */ 1139 and in privileged mode */
1140 /* Exceptions must be checked, according to v7 ref manual */ 1140 /* Exceptions must be checked, according to v7 ref manual */
1141 CHECK_VFP_ENABLED; 1141 CHECK_VFP_ENABLED;
1142 1142
@@ -1191,12 +1191,12 @@ VMRS_INST:
1191/* cond 1110 XXX1 Vd-- Rt-- 1011 NXX1 0000 */ 1191/* cond 1110 XXX1 Vd-- Rt-- 1011 NXX1 0000 */
1192/* cond 1110 op11 CRn- Rt-- copr op21 CRm- MCR */ 1192/* cond 1110 op11 CRn- Rt-- copr op21 CRm- MCR */
1193#ifdef VFP_INTERPRETER_STRUCT 1193#ifdef VFP_INTERPRETER_STRUCT
1194typedef struct _vmovbcr_inst { 1194struct vmovbcr_inst {
1195 unsigned int esize; 1195 unsigned int esize;
1196 unsigned int index; 1196 unsigned int index;
1197 unsigned int d; 1197 unsigned int d;
1198 unsigned int t; 1198 unsigned int t;
1199} vmovbcr_inst; 1199};
1200#endif 1200#endif
1201#ifdef VFP_INTERPRETER_TRANS 1201#ifdef VFP_INTERPRETER_TRANS
1202static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbcr)(unsigned int inst, int index) 1202static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbcr)(unsigned int inst, int index)
@@ -1245,12 +1245,12 @@ VMOVBCR_INST:
1245/* cond 1100 010X Rt2- Rt-- 1010 00X1 Vm-- */ 1245/* cond 1100 010X Rt2- Rt-- 1010 00X1 Vm-- */
1246/* cond 1100 0101 Rt2- Rt-- copr opc1 CRm- MRRC */ 1246/* cond 1100 0101 Rt2- Rt-- copr opc1 CRm- MRRC */
1247#ifdef VFP_INTERPRETER_STRUCT 1247#ifdef VFP_INTERPRETER_STRUCT
1248typedef struct _vmovbrrss_inst { 1248struct vmovbrrss_inst {
1249 unsigned int to_arm; 1249 unsigned int to_arm;
1250 unsigned int t; 1250 unsigned int t;
1251 unsigned int t2; 1251 unsigned int t2;
1252 unsigned int m; 1252 unsigned int m;
1253} vmovbrrss_inst; 1253};
1254#endif 1254#endif
1255#ifdef VFP_INTERPRETER_TRANS 1255#ifdef VFP_INTERPRETER_TRANS
1256static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrrss)(unsigned int inst, int index) 1256static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrrss)(unsigned int inst, int index)
@@ -1294,12 +1294,12 @@ VMOVBRRSS_INST:
1294/* cond 1100 010X Rt2- Rt-- 1011 00X1 Vm-- */ 1294/* cond 1100 010X Rt2- Rt-- 1011 00X1 Vm-- */
1295/* cond 1100 0101 Rt2- Rt-- copr opc1 CRm- MRRC */ 1295/* cond 1100 0101 Rt2- Rt-- copr opc1 CRm- MRRC */
1296#ifdef VFP_INTERPRETER_STRUCT 1296#ifdef VFP_INTERPRETER_STRUCT
1297typedef struct _vmovbrrd_inst { 1297struct vmovbrrd_inst {
1298 unsigned int to_arm; 1298 unsigned int to_arm;
1299 unsigned int t; 1299 unsigned int t;
1300 unsigned int t2; 1300 unsigned int t2;
1301 unsigned int m; 1301 unsigned int m;
1302} vmovbrrd_inst; 1302};
1303#endif 1303#endif
1304#ifdef VFP_INTERPRETER_TRANS 1304#ifdef VFP_INTERPRETER_TRANS
1305static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrrd)(unsigned int inst, int index) 1305static ARM_INST_PTR INTERPRETER_TRANSLATE(vmovbrrd)(unsigned int inst, int index)
@@ -1347,13 +1347,13 @@ VMOVBRRD_INST:
1347/* VSTR */ 1347/* VSTR */
1348/* cond 1101 UD00 Rn-- Vd-- 101X imm8 imm8 */ 1348/* cond 1101 UD00 Rn-- Vd-- 101X imm8 imm8 */
1349#ifdef VFP_INTERPRETER_STRUCT 1349#ifdef VFP_INTERPRETER_STRUCT
1350typedef struct _vstr_inst { 1350struct vstr_inst {
1351 unsigned int single; 1351 unsigned int single;
1352 unsigned int n; 1352 unsigned int n;
1353 unsigned int d; 1353 unsigned int d;
1354 unsigned int imm32; 1354 unsigned int imm32;
1355 unsigned int add; 1355 unsigned int add;
1356} vstr_inst; 1356};
1357#endif 1357#endif
1358#ifdef VFP_INTERPRETER_TRANS 1358#ifdef VFP_INTERPRETER_TRANS
1359static ARM_INST_PTR INTERPRETER_TRANSLATE(vstr)(unsigned int inst, int index) 1359static ARM_INST_PTR INTERPRETER_TRANSLATE(vstr)(unsigned int inst, int index)
@@ -1415,12 +1415,12 @@ VSTR_INST:
1415/* VPUSH */ 1415/* VPUSH */
1416/* cond 1101 0D10 1101 Vd-- 101X imm8 imm8 */ 1416/* cond 1101 0D10 1101 Vd-- 101X imm8 imm8 */
1417#ifdef VFP_INTERPRETER_STRUCT 1417#ifdef VFP_INTERPRETER_STRUCT
1418typedef struct _vpush_inst { 1418struct vpush_inst {
1419 unsigned int single; 1419 unsigned int single;
1420 unsigned int d; 1420 unsigned int d;
1421 unsigned int imm32; 1421 unsigned int imm32;
1422 unsigned int regs; 1422 unsigned int regs;
1423} vpush_inst; 1423};
1424#endif 1424#endif
1425#ifdef VFP_INTERPRETER_TRANS 1425#ifdef VFP_INTERPRETER_TRANS
1426static ARM_INST_PTR INTERPRETER_TRANSLATE(vpush)(unsigned int inst, int index) 1426static ARM_INST_PTR INTERPRETER_TRANSLATE(vpush)(unsigned int inst, int index)
@@ -1488,7 +1488,7 @@ VPUSH_INST:
1488/* VSTM */ 1488/* VSTM */
1489/* cond 110P UDW0 Rn-- Vd-- 101X imm8 imm8 */ 1489/* cond 110P UDW0 Rn-- Vd-- 101X imm8 imm8 */
1490#ifdef VFP_INTERPRETER_STRUCT 1490#ifdef VFP_INTERPRETER_STRUCT
1491typedef struct _vstm_inst { 1491struct vstm_inst {
1492 unsigned int single; 1492 unsigned int single;
1493 unsigned int add; 1493 unsigned int add;
1494 unsigned int wback; 1494 unsigned int wback;
@@ -1496,7 +1496,7 @@ typedef struct _vstm_inst {
1496 unsigned int n; 1496 unsigned int n;
1497 unsigned int imm32; 1497 unsigned int imm32;
1498 unsigned int regs; 1498 unsigned int regs;
1499} vstm_inst; 1499};
1500#endif 1500#endif
1501#ifdef VFP_INTERPRETER_TRANS 1501#ifdef VFP_INTERPRETER_TRANS
1502static ARM_INST_PTR INTERPRETER_TRANSLATE(vstm)(unsigned int inst, int index) 1502static ARM_INST_PTR INTERPRETER_TRANSLATE(vstm)(unsigned int inst, int index)
@@ -1570,12 +1570,12 @@ VSTM_INST: /* encoding 1 */
1570/* VPOP */ 1570/* VPOP */
1571/* cond 1100 1D11 1101 Vd-- 101X imm8 imm8 */ 1571/* cond 1100 1D11 1101 Vd-- 101X imm8 imm8 */
1572#ifdef VFP_INTERPRETER_STRUCT 1572#ifdef VFP_INTERPRETER_STRUCT
1573typedef struct _vpop_inst { 1573struct vpop_inst {
1574 unsigned int single; 1574 unsigned int single;
1575 unsigned int d; 1575 unsigned int d;
1576 unsigned int imm32; 1576 unsigned int imm32;
1577 unsigned int regs; 1577 unsigned int regs;
1578} vpop_inst; 1578};
1579#endif 1579#endif
1580#ifdef VFP_INTERPRETER_TRANS 1580#ifdef VFP_INTERPRETER_TRANS
1581static ARM_INST_PTR INTERPRETER_TRANSLATE(vpop)(unsigned int inst, int index) 1581static ARM_INST_PTR INTERPRETER_TRANSLATE(vpop)(unsigned int inst, int index)
@@ -1643,13 +1643,13 @@ VPOP_INST:
1643/* VLDR */ 1643/* VLDR */
1644/* cond 1101 UD01 Rn-- Vd-- 101X imm8 imm8 */ 1644/* cond 1101 UD01 Rn-- Vd-- 101X imm8 imm8 */
1645#ifdef VFP_INTERPRETER_STRUCT 1645#ifdef VFP_INTERPRETER_STRUCT
1646typedef struct _vldr_inst { 1646struct vldr_inst {
1647 unsigned int single; 1647 unsigned int single;
1648 unsigned int n; 1648 unsigned int n;
1649 unsigned int d; 1649 unsigned int d;
1650 unsigned int imm32; 1650 unsigned int imm32;
1651 unsigned int add; 1651 unsigned int add;
1652} vldr_inst; 1652};
1653#endif 1653#endif
1654#ifdef VFP_INTERPRETER_TRANS 1654#ifdef VFP_INTERPRETER_TRANS
1655static ARM_INST_PTR INTERPRETER_TRANSLATE(vldr)(unsigned int inst, int index) 1655static ARM_INST_PTR INTERPRETER_TRANSLATE(vldr)(unsigned int inst, int index)
@@ -1711,7 +1711,7 @@ VLDR_INST:
1711/* VLDM */ 1711/* VLDM */
1712/* cond 110P UDW1 Rn-- Vd-- 101X imm8 imm8 */ 1712/* cond 110P UDW1 Rn-- Vd-- 101X imm8 imm8 */
1713#ifdef VFP_INTERPRETER_STRUCT 1713#ifdef VFP_INTERPRETER_STRUCT
1714typedef struct _vldm_inst { 1714struct vldm_inst {
1715 unsigned int single; 1715 unsigned int single;
1716 unsigned int add; 1716 unsigned int add;
1717 unsigned int wback; 1717 unsigned int wback;
@@ -1719,7 +1719,7 @@ typedef struct _vldm_inst {
1719 unsigned int n; 1719 unsigned int n;
1720 unsigned int imm32; 1720 unsigned int imm32;
1721 unsigned int regs; 1721 unsigned int regs;
1722} vldm_inst; 1722};
1723#endif 1723#endif
1724#ifdef VFP_INTERPRETER_TRANS 1724#ifdef VFP_INTERPRETER_TRANS
1725static ARM_INST_PTR INTERPRETER_TRANSLATE(vldm)(unsigned int inst, int index) 1725static ARM_INST_PTR INTERPRETER_TRANSLATE(vldm)(unsigned int inst, int index)