EmuNewz Network

Full Version: memcpySequence native code bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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>
Interesting! Could you provide a compiler DEBUG log of the good case (i.e. with the memcpySequence entry deleted).

Thank you!
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!
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?
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?
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