Changeset 3074 in CLRX


Ignore:
Timestamp:
May 22, 2017, 9:17:46 PM (17 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNDisasm: Increase outBufSize and increase buffer reservation size.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdasm/Disassembler.h

    r2701 r3074  
    9999   
    100100    /// constructor
    101     explicit ISADisassembler(Disassembler& disassembler, cxuint outBufSize = 500);
     101    explicit ISADisassembler(Disassembler& disassembler, cxuint outBufSize = 600);
    102102   
    103103    /// write location in the code
  • CLRadeonExtender/trunk/amdasm/GCNDisasm.cpp

    r3073 r3074  
    832832{
    833833    FastOutputBuffer& output = dasm.output;
    834     char* bufStart = output.reserve(80);
     834    char* bufStart = output.reserve(90);
    835835    char* bufPtr = bufStart;
    836836    addSpaces(bufPtr, spacesToAdd);
     
    860860    const bool isGCN14 = ((arch&ARCH_RXVEGA)!=0);
    861861    FastOutputBuffer& output = dasm.output;
    862     char* bufStart = output.reserve(60);
     862    char* bufStart = output.reserve(70);
    863863    char* bufPtr = bufStart;
    864864    const cxuint imm16 = insnCode&0xffff;
     
    995995{
    996996    FastOutputBuffer& output = dasm.output;
    997     char* bufStart = output.reserve(70);
     997    char* bufStart = output.reserve(80);
    998998    char* bufPtr = bufStart;
    999999    addSpaces(bufPtr, spacesToAdd);
     
    10361036{
    10371037    FastOutputBuffer& output = dasm.output;
    1038     char* bufStart = output.reserve(80);
     1038    char* bufStart = output.reserve(90);
    10391039    char* bufPtr = bufStart;
    10401040    addSpaces(bufPtr, spacesToAdd);
     
    10811081{
    10821082    FastOutputBuffer& output = dasm.output;
    1083     char* bufStart = output.reserve(80);
     1083    char* bufStart = output.reserve(90);
    10841084    char* bufPtr = bufStart;
    10851085    addSpaces(bufPtr, spacesToAdd);
     
    12281228{
    12291229    FastOutputBuffer& output = dasm.output;
    1230     char* bufStart = output.reserve(100);
     1230    char* bufStart = output.reserve(120);
    12311231    char* bufPtr = bufStart;
    12321232    const uint16_t mode1 = (gcnInsn.mode & GCN_MASK1);
     
    13831383          bool src0Used, bool src1Used)
    13841384{
    1385     char* bufStart = output.reserve(90);
     1385    char* bufStart = output.reserve(100);
    13861386    char* bufPtr = bufStart;
    13871387    const cxuint dstSel = (insnCode2>>8)&7;
     
    14651465        bool src0Used, bool src1Used)
    14661466{
    1467     char* bufStart = output.reserve(100);
     1467    char* bufStart = output.reserve(110);
    14681468    char* bufPtr = bufStart;
    14691469    const cxuint dppCtrl = (insnCode2>>8)&0x1ff;
     
    15331533    FastOutputBuffer& output = dasm.output;
    15341534    const bool isGCN12 = ((arch&ARCH_GCN_1_2_4)!=0);
    1535     char* bufStart = output.reserve(100);
     1535    char* bufStart = output.reserve(120);
    15361536    char* bufPtr = bufStart;
    15371537    addSpaces(bufPtr, spacesToAdd);
     
    16011601    FastOutputBuffer& output = dasm.output;
    16021602    const bool isGCN12 = ((arch&ARCH_GCN_1_2_4)!=0);
    1603     char* bufStart = output.reserve(110);
     1603    char* bufStart = output.reserve(130);
    16041604    char* bufPtr = bufStart;
    16051605   
     
    16801680    FastOutputBuffer& output = dasm.output;
    16811681    const bool isGCN12 = ((arch&ARCH_GCN_1_2_4)!=0);
    1682     char* bufStart = output.reserve(130);
     1682    char* bufStart = output.reserve(150);
    16831683    char* bufPtr = bufStart;
    16841684   
     
    17971797{
    17981798    FastOutputBuffer& output = dasm.output;
    1799     char* bufStart = output.reserve(140);
     1799    char* bufStart = output.reserve(170);
    18001800    char* bufPtr = bufStart;
    18011801    const bool isGCN12 = ((arch&ARCH_GCN_1_2_4)!=0);
     
    21332133{
    21342134    FastOutputBuffer& output = dasm.output;
    2135     char* bufStart = output.reserve(80);
     2135    char* bufStart = output.reserve(90);
    21362136    char* bufPtr = bufStart;
    21372137    addSpaces(bufPtr, spacesToAdd);
     
    21562156{
    21572157    FastOutputBuffer& output = dasm.output;
    2158     char* bufStart = output.reserve(90);
     2158    char* bufStart = output.reserve(105);
    21592159    char* bufPtr = bufStart;
    21602160    const bool isGCN12 = ((arch&ARCH_GCN_1_2_4)!=0);
     
    22842284{
    22852285    FastOutputBuffer& output = dasm.output;
    2286     char* bufStart = output.reserve(150);
     2286    char* bufStart = output.reserve(170);
    22872287    char* bufPtr = bufStart;
    22882288    const bool isGCN12 = ((arch&ARCH_GCN_1_2_4)!=0);
     
    24042404    const bool isGCN14 = ((arch&ARCH_RXVEGA)!=0);
    24052405    FastOutputBuffer& output = dasm.output;
    2406     char* bufStart = output.reserve(150);
     2406    char* bufStart = output.reserve(170);
    24072407    char* bufPtr = bufStart;
    24082408    addSpaces(bufPtr, spacesToAdd);
     
    24872487{
    24882488    FastOutputBuffer& output = dasm.output;
    2489     char* bufStart = output.reserve(90);
     2489    char* bufStart = output.reserve(100);
    24902490    char* bufPtr = bufStart;
    24912491    addSpaces(bufPtr, spacesToAdd);
     
    25762576{
    25772577    FastOutputBuffer& output = dasm.output;
    2578     char* bufStart = output.reserve(130);
     2578    char* bufStart = output.reserve(150);
    25792579    char* bufPtr = bufStart;
    25802580    addSpaces(bufPtr, spacesToAdd);
Note: See TracChangeset for help on using the changeset viewer.