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: 129)
.7z   good.7z (Size: 53.81 KB / Downloads: 106)
Reply


Messages In This Thread
memcpySequence native code bug - by sum2012 - 04-16-2014, 11:40 PM
RE: memcpySequence native code bug - by gid15 - 04-26-2014, 06:45 AM
RE: memcpySequence native code bug - by sum2012 - 04-26-2014, 01:43 PM
RE: memcpySequence native code bug - by gid15 - 04-26-2014, 08:47 PM
RE: memcpySequence native code bug - by sum2012 - 04-26-2014, 09:15 PM
RE: memcpySequence native code bug - by gid15 - 04-27-2014, 12:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)