Changeset 3061 in CLRX


Ignore:
Timestamp:
May 13, 2017, 4:15:12 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNDisasm: Remove obsolete bitfield in VOPExtraWordOut. add arch arg to decodeVOPSDWAFlags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/GCNDisasm.cpp

    r3060 r3061  
    13351335struct CLRX_INTERNAL VOPExtraWordOut
    13361336{
    1337     uint16_t src0: 9;
     1337    uint16_t src0;
    13381338    bool sextSrc0;
    13391339    bool negSrc0;
     
    13421342    bool negSrc1;
    13431343    bool absSrc1;
     1344    cxbyte mod;
    13441345};
    13451346
     
    13551356
    13561357/* returns mask of abs,neg,sext for src0 and src1 argument and src0 register */
    1357 static inline VOPExtraWordOut decodeVOPSDWAFlags(uint32_t insnCode2)
     1358static inline VOPExtraWordOut decodeVOPSDWAFlags(uint32_t insnCode2, uint16_t arch)
    13581359{
    13591360    return { uint16_t((insnCode2&0xff)+256),
     
    15191520    {
    15201521        if (src0Field == 0xf9)
    1521             extraFlags = decodeVOPSDWAFlags(literal);
     1522            extraFlags = decodeVOPSDWAFlags(literal, arch);
    15221523        else if (src0Field == 0xfa)
    15231524            extraFlags = decodeVOPDPPFlags(literal);
     
    15851586    {
    15861587        if (src0Field == 0xf9)
    1587             extraFlags = decodeVOPSDWAFlags(literal);
     1588            extraFlags = decodeVOPSDWAFlags(literal, arch);
    15881589        else if (src0Field == 0xfa)
    15891590            extraFlags = decodeVOPDPPFlags(literal);
     
    16671668    {
    16681669        if (src0Field == 0xf9)
    1669             extraFlags = decodeVOPSDWAFlags(literal);
     1670            extraFlags = decodeVOPSDWAFlags(literal, arch);
    16701671        else if (src0Field == 0xfa)
    16711672            extraFlags = decodeVOPDPPFlags(literal);
Note: See TracChangeset for help on using the changeset viewer.