Changeset 67161 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 31, 2017 9:57:31 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c
r67154 r67161 113 113 114 114 115 /** Pointer to the generated test state. */ 116 typedef struct BS3CG1STATE *PBS3CG1STATE; 117 115 118 /** 116 119 * Encoder callback. … … 120 123 * @param iEncoding The encoding. 121 124 */ 122 struct BS3CG1STATE; 123 typedef BS3_DECL_NEAR(unsigned) FNBS3CG1ENCODER(struct BS3CG1STATE *pThis, unsigned iEncoding); 125 typedef unsigned BS3_NEAR_CODE FNBS3CG1ENCODER(PBS3CG1STATE pThis, unsigned iEncoding); 124 126 /** Pointer to a encoder callback. */ 125 127 typedef FNBS3CG1ENCODER *PFNBS3CG1ENCODER; … … 317 319 318 320 } BS3CG1STATE; 319 /** Pointer to the generated test state. */320 typedef BS3CG1STATE *PBS3CG1STATE;321 321 322 322 … … 1502 1502 1503 1503 1504 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Eb_Gb_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)1504 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Eb_Gb_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 1505 1505 { 1506 1506 unsigned off; … … 1541 1541 1542 1542 1543 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Gv_Ev__OR__MODRM_Ev_Gv(PBS3CG1STATE pThis, unsigned iEncoding)1543 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Gv_Ev__OR__MODRM_Ev_Gv(PBS3CG1STATE pThis, unsigned iEncoding) 1544 1544 { 1545 1545 unsigned off; … … 1617 1617 1618 1618 1619 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Pq_WO_Qq(PBS3CG1STATE pThis, unsigned iEncoding)1619 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Pq_WO_Qq(PBS3CG1STATE pThis, unsigned iEncoding) 1620 1620 { 1621 1621 unsigned off; … … 1669 1669 1670 1670 1671 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Pq_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding)1671 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Pq_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding) 1672 1672 { 1673 1673 unsigned off; … … 1697 1697 1698 1698 1699 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)1699 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding) 1700 1700 { 1701 1701 unsigned off; … … 1747 1747 1748 1748 1749 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)1749 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding) 1750 1750 { 1751 1751 #if ARCH_BITS == 64 … … 1806 1806 1807 1807 /* Differs from Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ in that REX.R isn't ignored. */ 1808 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)1808 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding) 1809 1809 { 1810 1810 unsigned off; … … 1857 1857 1858 1858 /* Differs from Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ in that REX.R isn't ignored. */ 1859 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)1859 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding) 1860 1860 { 1861 1861 #if ARCH_BITS == 64 … … 1915 1915 1916 1916 1917 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)1917 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 1918 1918 { 1919 1919 unsigned off; … … 1943 1943 1944 1944 1945 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)1945 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 1946 1946 { 1947 1947 unsigned off; … … 1971 1971 1972 1972 1973 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Vsomething_Nsomething(PBS3CG1STATE pThis, unsigned iEncoding)1973 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Nsomething(PBS3CG1STATE pThis, unsigned iEncoding) 1974 1974 { 1975 1975 unsigned off; … … 2000 2000 2001 2001 2002 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Gv_RO_Ma(PBS3CG1STATE pThis, unsigned iEncoding) /* bound instr */2002 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Gv_RO_Ma(PBS3CG1STATE pThis, unsigned iEncoding) /* bound instr */ 2003 2003 { 2004 2004 unsigned off; … … 2040 2040 2041 2041 2042 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Msomething(PBS3CG1STATE pThis, unsigned iEncoding)2042 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething(PBS3CG1STATE pThis, unsigned iEncoding) 2043 2043 { 2044 2044 unsigned off; … … 2057 2057 2058 2058 2059 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Msomething_Psomething(PBS3CG1STATE pThis, unsigned iEncoding)2059 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething_Psomething(PBS3CG1STATE pThis, unsigned iEncoding) 2060 2060 { 2061 2061 unsigned off; … … 2089 2089 2090 2090 2091 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)2091 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2092 2092 { 2093 2093 unsigned off; … … 2119 2119 2120 2120 2121 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_FIXED(PBS3CG1STATE pThis, unsigned iEncoding)2121 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_FIXED(PBS3CG1STATE pThis, unsigned iEncoding) 2122 2122 { 2123 2123 unsigned off; … … 2135 2135 2136 2136 2137 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_FIXED_AL_Ib(PBS3CG1STATE pThis, unsigned iEncoding)2137 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_FIXED_AL_Ib(PBS3CG1STATE pThis, unsigned iEncoding) 2138 2138 { 2139 2139 unsigned off; … … 2153 2153 2154 2154 2155 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_FIXED_rAX_Iz(PBS3CG1STATE pThis, unsigned iEncoding)2155 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_FIXED_rAX_Iz(PBS3CG1STATE pThis, unsigned iEncoding) 2156 2156 { 2157 2157 unsigned off; … … 2216 2216 2217 2217 2218 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)2218 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding) 2219 2219 { 2220 2220 unsigned off; … … 2239 2239 2240 2240 2241 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)2241 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding) 2242 2242 { 2243 2243 unsigned off; … … 2380 2380 2381 2381 2382 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_VEX_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)2382 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding) 2383 2383 { 2384 2384 unsigned off; … … 2462 2462 2463 2463 /* Differs from Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ in that REX.R isn't ignored. */ 2464 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_VEX_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)2464 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding) 2465 2465 { 2466 2466 #if ARCH_BITS == 64 … … 2526 2526 * Lig - VEX.L ignored. 2527 2527 */ 2528 static BS3_DECL_NEAR_CALLBACK(unsigned)2528 static unsigned BS3_NEAR_CODE 2529 2529 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Hsomething_Usomething_Lip_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2530 2530 { … … 2586 2586 * Wip - VEX.W ignored. 2587 2587 */ 2588 static BS3_DECL_NEAR_CALLBACK(unsigned)2588 static unsigned BS3_NEAR_CODE 2589 2589 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_HdqCsomething_Usomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2590 2590 { … … 2648 2648 * Wip - VEX.W ignored. 2649 2649 */ 2650 static BS3_DECL_NEAR_CALLBACK(unsigned)2650 static unsigned BS3_NEAR_CODE 2651 2651 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2652 2652 { … … 2742 2742 * Lig - VEX.L ignored. 2743 2743 */ 2744 static BS3_DECL_NEAR_CALLBACK(unsigned)2744 static unsigned BS3_NEAR_CODE 2745 2745 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_Lig_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2746 2746 { … … 2830 2830 * L0 - VEX.L must be zero. 2831 2831 */ 2832 static BS3_DECL_NEAR_CALLBACK(unsigned)2832 static unsigned BS3_NEAR_CODE 2833 2833 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_Lmbz_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2834 2834 { … … 3001 3001 * L0 - VEX.L is zero (encoding may exist where it isn't). 3002 3002 */ 3003 static BS3_DECL_NEAR_CALLBACK(unsigned)3003 static unsigned BS3_NEAR_CODE 3004 3004 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_L0_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3005 3005 { … … 3012 3012 * L1 - VEX.L is one (encoding may exist where it isn't). 3013 3013 */ 3014 static BS3_DECL_NEAR_CALLBACK(unsigned)3014 static unsigned BS3_NEAR_CODE 3015 3015 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_L1_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3016 3016 { … … 3023 3023 * Wip - VEX.W ignored. 3024 3024 */ 3025 static BS3_DECL_NEAR_CALLBACK(unsigned)3025 static unsigned BS3_NEAR_CODE 3026 3026 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Hsomething_Msomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3027 3027 { … … 3112 3112 3113 3113 3114 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_VEX_MODRM_Md_WO(PBS3CG1STATE pThis, unsigned iEncoding)3114 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_Md_WO(PBS3CG1STATE pThis, unsigned iEncoding) 3115 3115 { 3116 3116 unsigned off; … … 3188 3188 * Lmbz = VEX.L must be zero. 3189 3189 */ 3190 static BS3_DECL_NEAR_CALLBACK(unsigned)3190 static unsigned BS3_NEAR_CODE 3191 3191 Bs3Cg1EncodeNext_VEX_MODRM_WsomethingWO_Vsomething_Wip_Lmbz_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3192 3192 { … … 3270 3270 * Wip = VEX.W ignored. 3271 3271 */ 3272 static BS3_DECL_NEAR_CALLBACK(unsigned)3272 static unsigned BS3_NEAR_CODE 3273 3273 Bs3Cg1EncodeNext_VEX_MODRM_WsomethingWO_Vsomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3274 3274 { … … 3427 3427 3428 3428 3429 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_VEX_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)3429 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding) 3430 3430 { 3431 3431 unsigned off; … … 3475 3475 3476 3476 3477 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_VEX_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)3477 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding) 3478 3478 { 3479 3479 unsigned off; … … 3507 3507 3508 3508 3509 static BS3_DECL_NEAR_CALLBACK(unsigned)Bs3Cg1EncodeNext_VEX_MODRM(PBS3CG1STATE pThis, unsigned iEncoding)3509 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM(PBS3CG1STATE pThis, unsigned iEncoding) 3510 3510 { 3511 3511 const unsigned cFirstEncodings = 32;
Note:
See TracChangeset
for help on using the changeset viewer.