This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
memcpySequence native code bug
#1
if I delete the below "memcpySequence" in Compiler.xml
Will solve
Code:
Catched exception 'java.lang.NullPointerException' while compiling 0x08B15504 (0x08B151F0-0x08B15798)
Attach log and profiler for each case

Code:
<NativeCodeSequence name="memcpySequence">
        <Class>jpcsp.Allegrex.compiler.nativeCode.MemcpySequence</Class>
        <Parameters>$a3,$a2,$t0,1,1</Parameters>
        <BranchInstruction>@08B31770</BranchInstruction>
        <CodeInstructions><![CDATA[
    08B316FC:[2D050003]: sltiu      $a1, $t0, 3
    08B31700:[14A00011]: bne        $a1, $zr, 0x08B31748
    08B31704:[00000000]: nop
    08B31708:[24C50001]: addiu      $a1, $a2, 1
    08B3170C:[90A60000]: lbu        $a2, 0($a1)
    08B31710:[24E70001]: addiu      $a3, $a3, 1
    08B31714:[A0E60000]: sb         $a2, 0($a3)
    08B31718:[24A60001]: addiu      $a2, $a1, 1
    08B3171C:[90C50000]: lbu        $a1, 0($a2)
    08B31720:[24E70001]: addiu      $a3, $a3, 1
    08B31724:[A0E50000]: sb         $a1, 0($a3)
    08B31728:[24C60001]: addiu      $a2, $a2, 1
    08B3172C:[90C50000]: lbu        $a1, 0($a2)
    08B31730:[24E70001]: addiu      $a3, $a3, 1
    08B31734:[2508FFFD]: addiu      $t0, $t0, -3
    08B31738:[A0E50000]: sb         $a1, 0($a3)
    08B3173C:[2D050003]: sltiu      $a1, $t0, 3
    08B31740:[10A0FFF2]: beq        $a1, $zr, 0x08B3170C
    08B31744:[24C50001]: addiu      $a1, $a2, 1
    08B31748:[11000067]: beq        $t0, $zr, 0x08B318E8
    08B3174C:[24C60001]: addiu      $a2, $a2, 1
    08B31750:[90C50000]: lbu        $a1, 0($a2)
    08B31754:[24E70001]: addiu      $a3, $a3, 1
    08B31758:[A0E50000]: sb         $a1, 0($a3)
    08B3175C:[2D050002]: sltiu      $a1, $t0, 2
    08B31760:[14A00061]: bne        $a1, $zr, 0x08B318E8
    08B31764:[24C50001]: addiu      $a1, $a2, 1
    08B31768:[90A50000]: lbu        $a1, 0($a1)
    08B3176C:[24E70001]: addiu      $a3, $a3, 1
    08B31770:[1000005D]: b          0x08B318E8
    08B31774:[A0E50000]: sb         $a1, 0($a3)
]]></CodeInstructions>
    </NativeCodeSequence>


Attached Files
.7z   bad.7z (Size: 55.99 KB / Downloads: 175)
.7z   good.7z (Size: 53.81 KB / Downloads: 150)
Reply
#2
Interesting! Could you provide a compiler DEBUG log of the good case (i.e. with the memcpySequence entry deleted).

Thank you!
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#3
Attach
(04-26-2014, 06:45 AM)gid15 Wrote: Interesting! Could you provide a compiler DEBUG log of the good case (i.e. with the memcpySequence entry deleted).

Thank you!


Attached Files
.7z   compilerdebuglog.7z (Size: 540.05 KB / Downloads: 187)
Reply
#4
Thank you!

I've tried to solve this case in a generic way with r3503. Could you generate a new compiler DEBUG log to check if the fix worked properly?
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply
#5
Good.Fixed.but I cannot seee log error.
(04-26-2014, 08:47 PM)gid15 Wrote: Thank you!

I've tried to solve this case in a generic way with r3503. Could you generate a new compiler DEBUG log to check if the fix worked properly?


Attached Files
.7z   complierdebuglog.7z (Size: 528.36 KB / Downloads: 161)
Reply
#6
Thank you! I just wanted to check if the DEBUG log I added was displayed:
Code:
05:11:30 DEBUG compiler - ExtractorThread - 0x08B1541C: branching to the 2nd instruction of a native code sequence, assuming the 1st instruction
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)