Ignore:
Timestamp:
Nov 10, 2016, 10:24:45 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: DisasmROCm: include space between a neighboring kernels.

File:
1 edited

Legend:

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

    r2549 r2558  
    184184    output.write(buf, bufSize);
    185185    bufSize = snprintf(buf, 100, "        .vgprsnum %u\n", ((pgmRsrc1 & 0x3f)<<2)+4);
    186     output.write(buf, bufSize);
    187186    output.write(buf, bufSize);
    188187    if ((pgmRsrc1 & (1U<<20)) != 0)
     
    483482                }
    484483               
     484                const ROCmDisasmRegionInput& newRegion =
     485                        rocmInput->regions[sorted[i+1].second];
     486                const size_t disasmSize = (i+1 < regionsNum) ?
     487                        newRegion.offset - region.offset-256 :
     488                        rocmInput->codeSize - region.offset-256;
     489               
    485490                if (doDumpCode)
    486491                {
    487                     isaDisassembler->setInput(region.size-256, code + region.offset+256,
     492                    isaDisassembler->setInput(disasmSize, code + region.offset+256,
    488493                                    region.offset+256, region.offset+1);
    489494                    isaDisassembler->setDontPrintLabels(i+1<regionsNum);
     
    492497                /* previous position 1 byte after kernel region
    493498                 * labels at end will be printed by 'disassemble' */
    494                 prevRegionPos = region.offset + region.size + 1;
     499                prevRegionPos = region.offset + disasmSize + 256 + 1;
    495500            }
    496501            else if (doDumpData)
Note: See TracChangeset for help on using the changeset viewer.