VirtualBox

Changeset 67154 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 31, 2017 8:55:51 AM (8 years ago)
Author:
vboxsync
Message:

bs3-cpu-generated-1-template.c: fixed gcc warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3-cpu-generated-1-template.c

    r67106 r67154  
    120120 * @param   iEncoding   The encoding.
    121121 */
     122struct BS3CG1STATE;
    122123typedef BS3_DECL_NEAR(unsigned) FNBS3CG1ENCODER(struct BS3CG1STATE *pThis, unsigned iEncoding);
    123124/** Pointer to a encoder callback. */
     
    15011502
    15021503
    1503 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Eb_Gb_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
     1504static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Eb_Gb_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    15041505{
    15051506    unsigned off;
     
    15401541
    15411542
    1542 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Gv_Ev__OR__MODRM_Ev_Gv(PBS3CG1STATE pThis, unsigned iEncoding)
     1543static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Gv_Ev__OR__MODRM_Ev_Gv(PBS3CG1STATE pThis, unsigned iEncoding)
    15431544{
    15441545    unsigned off;
     
    16161617
    16171618
    1618 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Pq_WO_Qq(PBS3CG1STATE pThis, unsigned iEncoding)
     1619static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Pq_WO_Qq(PBS3CG1STATE pThis, unsigned iEncoding)
    16191620{
    16201621    unsigned off;
     
    16681669
    16691670
    1670 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Pq_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding)
     1671static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Pq_WO_Uq(PBS3CG1STATE pThis, unsigned iEncoding)
    16711672{
    16721673    unsigned off;
     
    16961697
    16971698
    1698 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)
     1699static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)
    16991700{
    17001701    unsigned off;
     
    17461747
    17471748
    1748 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)
     1749static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)
    17491750{
    17501751#if ARCH_BITS == 64
     
    18051806
    18061807/* Differs from Bs3Cg1EncodeNext_MODRM_PdZx_WO_Ed_WZ in that REX.R isn't ignored. */
    1807 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)
     1808static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)
    18081809{
    18091810    unsigned off;
     
    18561857
    18571858/* Differs from Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ in that REX.R isn't ignored. */
    1858 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)
     1859static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)
    18591860{
    18601861#if ARCH_BITS == 64
     
    19141915
    19151916
    1916 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
     1917static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vsomething_Usomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    19171918{
    19181919    unsigned off;
     
    19421943
    19431944
    1944 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
     1945static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vsomething_Wsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    19451946{
    19461947    unsigned off;
     
    19701971
    19711972
    1972 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Vsomething_Nsomething(PBS3CG1STATE pThis, unsigned iEncoding)
     1973static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Vsomething_Nsomething(PBS3CG1STATE pThis, unsigned iEncoding)
    19731974{
    19741975    unsigned off;
     
    19992000
    20002001
    2001 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Gv_RO_Ma(PBS3CG1STATE pThis, unsigned iEncoding) /* bound instr */
     2002static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Gv_RO_Ma(PBS3CG1STATE pThis, unsigned iEncoding) /* bound instr */
    20022003{
    20032004    unsigned off;
     
    20392040
    20402041
    2041 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething(PBS3CG1STATE pThis, unsigned iEncoding)
     2042static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Msomething(PBS3CG1STATE pThis, unsigned iEncoding)
    20422043{
    20432044    unsigned off;
     
    20562057
    20572058
    2058 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething_Psomething(PBS3CG1STATE pThis, unsigned iEncoding)
     2059static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Msomething_Psomething(PBS3CG1STATE pThis, unsigned iEncoding)
    20592060{
    20602061    unsigned off;
     
    20882089
    20892090
    2090 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
     2091static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_Msomething_Vsomething_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    20912092{
    20922093    unsigned off;
     
    21182119
    21192120
    2120 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_FIXED(PBS3CG1STATE pThis, unsigned iEncoding)
     2121static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_FIXED(PBS3CG1STATE pThis, unsigned iEncoding)
    21212122{
    21222123    unsigned off;
     
    21342135
    21352136
    2136 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_FIXED_AL_Ib(PBS3CG1STATE pThis, unsigned iEncoding)
     2137static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_FIXED_AL_Ib(PBS3CG1STATE pThis, unsigned iEncoding)
    21372138{
    21382139    unsigned off;
     
    21522153
    21532154
    2154 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_FIXED_rAX_Iz(PBS3CG1STATE pThis, unsigned iEncoding)
     2155static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_FIXED_rAX_Iz(PBS3CG1STATE pThis, unsigned iEncoding)
    21552156{
    21562157    unsigned off;
     
    22152216
    22162217
    2217 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)
     2218static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)
    22182219{
    22192220    unsigned off;
     
    22382239
    22392240
    2240 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)
     2241static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)
    22412242{
    22422243    unsigned off;
     
    23792380
    23802381
    2381 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)
     2382static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_Vd_WO_Ed_WZ(PBS3CG1STATE pThis, unsigned iEncoding)
    23822383{
    23832384    unsigned off;
     
    24612462
    24622463/* Differs from Bs3Cg1EncodeNext_MODRM_Pq_WO_Eq_WNZ in that REX.R isn't ignored. */
    2463 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)
     2464static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_Vq_WO_Eq_WNZ(PBS3CG1STATE pThis, unsigned iEncoding)
    24642465{
    24652466#if ARCH_BITS == 64
     
    25252526 * Lig - VEX.L ignored.
    25262527 */
    2527 static unsigned BS3_NEAR_CODE
     2528static BS3_DECL_NEAR_CALLBACK(unsigned)
    25282529Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Hsomething_Usomething_Lip_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    25292530{
     
    25852586 * Wip - VEX.W ignored.
    25862587 */
    2587 static unsigned BS3_NEAR_CODE
     2588static BS3_DECL_NEAR_CALLBACK(unsigned)
    25882589Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_HdqCsomething_Usomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    25892590{
     
    26472648 * Wip - VEX.W ignored.
    26482649 */
    2649 static unsigned BS3_NEAR_CODE
     2650static BS3_DECL_NEAR_CALLBACK(unsigned)
    26502651Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    26512652{
     
    27412742 * Lig - VEX.L ignored.
    27422743 */
    2743 static unsigned BS3_NEAR_CODE
     2744static BS3_DECL_NEAR_CALLBACK(unsigned)
    27442745Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_Lig_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    27452746{
     
    28292830 * L0 - VEX.L must be zero.
    28302831 */
    2831 static unsigned BS3_NEAR_CODE
     2832static BS3_DECL_NEAR_CALLBACK(unsigned)
    28322833Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_Lmbz_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    28332834{
     
    30003001 * L0 - VEX.L is zero (encoding may exist where it isn't).
    30013002 */
    3002 static unsigned BS3_NEAR_CODE
     3003static BS3_DECL_NEAR_CALLBACK(unsigned)
    30033004Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_L0_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    30043005{
     
    30113012 * L1 - VEX.L is one (encoding may exist where it isn't).
    30123013 */
    3013 static unsigned BS3_NEAR_CODE
     3014static BS3_DECL_NEAR_CALLBACK(unsigned)
    30143015Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Msomething_Wip_L1_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    30153016{
     
    30223023 * Wip - VEX.W ignored.
    30233024 */
    3024 static unsigned BS3_NEAR_CODE
     3025static BS3_DECL_NEAR_CALLBACK(unsigned)
    30253026Bs3Cg1EncodeNext_VEX_MODRM_VsomethingWO_Hsomething_Msomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    30263027{
     
    31113112
    31123113
    3113 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_Md_WO(PBS3CG1STATE pThis, unsigned iEncoding)
     3114static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_Md_WO(PBS3CG1STATE pThis, unsigned iEncoding)
    31143115{
    31153116    unsigned off;
     
    31873188 * Lmbz = VEX.L must be zero.
    31883189 */
    3189 static unsigned BS3_NEAR_CODE
     3190static BS3_DECL_NEAR_CALLBACK(unsigned)
    31903191Bs3Cg1EncodeNext_VEX_MODRM_WsomethingWO_Vsomething_Wip_Lmbz_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    31913192{
     
    32693270 * Wip = VEX.W ignored.
    32703271 */
    3271 static unsigned BS3_NEAR_CODE
     3272static BS3_DECL_NEAR_CALLBACK(unsigned)
    32723273Bs3Cg1EncodeNext_VEX_MODRM_WsomethingWO_Vsomething_Wip_OR_ViceVersa(PBS3CG1STATE pThis, unsigned iEncoding)
    32733274{
     
    34263427
    34273428
    3428 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)
     3429static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_MOD_EQ_3(PBS3CG1STATE pThis, unsigned iEncoding)
    34293430{
    34303431    unsigned off;
     
    34743475
    34753476
    3476 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)
     3477static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM_MOD_NE_3(PBS3CG1STATE pThis, unsigned iEncoding)
    34773478{
    34783479    unsigned off;
     
    35063507
    35073508
    3508 static unsigned BS3_NEAR_CODE Bs3Cg1EncodeNext_VEX_MODRM(PBS3CG1STATE pThis, unsigned iEncoding)
     3509static BS3_DECL_NEAR_CALLBACK(unsigned) Bs3Cg1EncodeNext_VEX_MODRM(PBS3CG1STATE pThis, unsigned iEncoding)
    35093510{
    35103511    const unsigned cFirstEncodings = 32;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette