Changeset 67154 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 31, 2017 8:55:51 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c
r67106 r67154 120 120 * @param iEncoding The encoding. 121 121 */ 122 struct BS3CG1STATE; 122 123 typedef BS3_DECL_NEAR(unsigned) FNBS3CG1ENCODER(struct BS3CG1STATE *pThis, unsigned iEncoding); 123 124 /** Pointer to a encoder callback. */ … … 1501 1502 1502 1503 1503 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Eb_Gb_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)1504 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Eb_Gb_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 1504 1505 { 1505 1506 unsigned off; … … 1540 1541 1541 1542 1542 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Gv_Ev__OR__MODRM_Ev_Gv(PBS3CG1STATE pThis, unsigned iEncoding)1543 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Gv_Ev__OR__MODRM_Ev_Gv(PBS3CG1STATE pThis, unsigned iEncoding) 1543 1544 { 1544 1545 unsigned off; … … 1616 1617 1617 1618 1618 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Pq_WO_Qq(PBS3CG1STATE pThis, unsigned iEncoding)1619 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Pq_WO_Qq(PBS3CG1STATE pThis, unsigned iEncoding) 1619 1620 { 1620 1621 unsigned off; … … 1668 1669 1669 1670 1670 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Pq_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding)1671 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Pq_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding) 1671 1672 { 1672 1673 unsigned off; … … 1696 1697 1697 1698 1698 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)1699 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding) 1699 1700 { 1700 1701 unsigned off; … … 1746 1747 1747 1748 1748 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)1749 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding) 1749 1750 { 1750 1751 #if ARCH_BITS == 64 … … 1805 1806 1806 1807 /* Differs from Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ in that REX.R isn't ignored. */ 1807 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)1808 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding) 1808 1809 { 1809 1810 unsigned off; … … 1856 1857 1857 1858 /* Differs from Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ in that REX.R isn't ignored. */ 1858 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)1859 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding) 1859 1860 { 1860 1861 #if ARCH_BITS == 64 … … 1914 1915 1915 1916 1916 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)1917 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 1917 1918 { 1918 1919 unsigned off; … … 1942 1943 1943 1944 1944 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)1945 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 1945 1946 { 1946 1947 unsigned off; … … 1970 1971 1971 1972 1972 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Vsomething_Nsomething(PBS3CG1STATE pThis, unsigned iEncoding)1973 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vsomething_Nsomething(PBS3CG1STATE pThis, unsigned iEncoding) 1973 1974 { 1974 1975 unsigned off; … … 1999 2000 2000 2001 2001 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Gv_RO_Ma(PBS3CG1STATE pThis, unsigned iEncoding) /* bound instr */2002 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Gv_RO_Ma(PBS3CG1STATE pThis, unsigned iEncoding) /* bound instr */ 2002 2003 { 2003 2004 unsigned off; … … 2039 2040 2040 2041 2041 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Msomething(PBS3CG1STATE pThis, unsigned iEncoding)2042 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Msomething(PBS3CG1STATE pThis, unsigned iEncoding) 2042 2043 { 2043 2044 unsigned off; … … 2056 2057 2057 2058 2058 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Msomething_Psomething(PBS3CG1STATE pThis, unsigned iEncoding)2059 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Msomething_Psomething(PBS3CG1STATE pThis, unsigned iEncoding) 2059 2060 { 2060 2061 unsigned off; … … 2088 2089 2089 2090 2090 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)2091 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2091 2092 { 2092 2093 unsigned off; … … 2118 2119 2119 2120 2120 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_FIXED(PBS3CG1STATE pThis, unsigned iEncoding)2121 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_FIXED(PBS3CG1STATE pThis, unsigned iEncoding) 2121 2122 { 2122 2123 unsigned off; … … 2134 2135 2135 2136 2136 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_FIXED_AL_Ib(PBS3CG1STATE pThis, unsigned iEncoding)2137 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_FIXED_AL_Ib(PBS3CG1STATE pThis, unsigned iEncoding) 2137 2138 { 2138 2139 unsigned off; … … 2152 2153 2153 2154 2154 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_FIXED_rAX_Iz(PBS3CG1STATE pThis, unsigned iEncoding)2155 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_FIXED_rAX_Iz(PBS3CG1STATE pThis, unsigned iEncoding) 2155 2156 { 2156 2157 unsigned off; … … 2215 2216 2216 2217 2217 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)2218 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding) 2218 2219 { 2219 2220 unsigned off; … … 2238 2239 2239 2240 2240 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)2241 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding) 2241 2242 { 2242 2243 unsigned off; … … 2379 2380 2380 2381 2381 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_VEX_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)2382 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding) 2382 2383 { 2383 2384 unsigned off; … … 2461 2462 2462 2463 /* Differs from Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ in that REX.R isn't ignored. */ 2463 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_VEX_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)2464 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding) 2464 2465 { 2465 2466 #if ARCH_BITS == 64 … … 2525 2526 * Lig - VEX.L ignored. 2526 2527 */ 2527 static unsigned BS3_NEAR_CODE2528 static BS3_DECL_NEAR_CALLBACK(unsigned) 2528 2529 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Hsomething_Usomething_Lip_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2529 2530 { … … 2585 2586 * Wip - VEX.W ignored. 2586 2587 */ 2587 static unsigned BS3_NEAR_CODE2588 static BS3_DECL_NEAR_CALLBACK(unsigned) 2588 2589 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_HdqCsomething_Usomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2589 2590 { … … 2647 2648 * Wip - VEX.W ignored. 2648 2649 */ 2649 static unsigned BS3_NEAR_CODE2650 static BS3_DECL_NEAR_CALLBACK(unsigned) 2650 2651 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2651 2652 { … … 2741 2742 * Lig - VEX.L ignored. 2742 2743 */ 2743 static unsigned BS3_NEAR_CODE2744 static BS3_DECL_NEAR_CALLBACK(unsigned) 2744 2745 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_Lig_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2745 2746 { … … 2829 2830 * L0 - VEX.L must be zero. 2830 2831 */ 2831 static unsigned BS3_NEAR_CODE2832 static BS3_DECL_NEAR_CALLBACK(unsigned) 2832 2833 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_Lmbz_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 2833 2834 { … … 3000 3001 * L0 - VEX.L is zero (encoding may exist where it isn't). 3001 3002 */ 3002 static unsigned BS3_NEAR_CODE3003 static BS3_DECL_NEAR_CALLBACK(unsigned) 3003 3004 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_L0_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3004 3005 { … … 3011 3012 * L1 - VEX.L is one (encoding may exist where it isn't). 3012 3013 */ 3013 static unsigned BS3_NEAR_CODE3014 static BS3_DECL_NEAR_CALLBACK(unsigned) 3014 3015 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_L1_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3015 3016 { … … 3022 3023 * Wip - VEX.W ignored. 3023 3024 */ 3024 static unsigned BS3_NEAR_CODE3025 static BS3_DECL_NEAR_CALLBACK(unsigned) 3025 3026 Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Hsomething_Msomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3026 3027 { … … 3111 3112 3112 3113 3113 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_VEX_MODRM_Md_WO(PBS3CG1STATE pThis, unsigned iEncoding)3114 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_Md_WO(PBS3CG1STATE pThis, unsigned iEncoding) 3114 3115 { 3115 3116 unsigned off; … … 3187 3188 * Lmbz = VEX.L must be zero. 3188 3189 */ 3189 static unsigned BS3_NEAR_CODE3190 static BS3_DECL_NEAR_CALLBACK(unsigned) 3190 3191 Bs3Cg1EncodeNext_VEX_MODRM_WsomethingWO_Vsomething_Wip_Lmbz_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3191 3192 { … … 3269 3270 * Wip = VEX.W ignored. 3270 3271 */ 3271 static unsigned BS3_NEAR_CODE3272 static BS3_DECL_NEAR_CALLBACK(unsigned) 3272 3273 Bs3Cg1EncodeNext_VEX_MODRM_WsomethingWO_Vsomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding) 3273 3274 { … … 3426 3427 3427 3428 3428 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_VEX_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)3429 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding) 3429 3430 { 3430 3431 unsigned off; … … 3474 3475 3475 3476 3476 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_VEX_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)3477 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding) 3477 3478 { 3478 3479 unsigned off; … … 3506 3507 3507 3508 3508 static unsigned BS3_NEAR_CODEBs3Cg1EncodeNext_VEX_MODRM(PBS3CG1STATE pThis, unsigned iEncoding)3509 static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM(PBS3CG1STATE pThis, unsigned iEncoding) 3509 3510 { 3510 3511 const unsigned cFirstEncodings = 32;
Note:
See TracChangeset
for help on using the changeset viewer.