OSDN Git Service

target/hppa: fix dcor instruction
authorSven Schnelle <svens@stackframe.org>
Mon, 11 Feb 2019 18:19:07 +0000 (19:19 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 12 Feb 2019 16:59:21 +0000 (08:59 -0800)
commit60e29463bbfcf72500c00eb102d1c388c87057ba
treed0a6d3a99d1ac1f8ca80ff63de8b4bc6c3055cc0
parentb47a4a02908d31a2a24b5eddcae021c58d33df32
target/hppa: fix dcor instruction

It looks like the operands where exchanged. HP bootrom tests the
following sequence:

0x00000000f0004064:  ldil L%-66666800,r7
0x00000000f0004068:  addi 19f,r7,r7
0x00000000f000406c:  addi -1,r0,rp
0x00000000f0004070:  addi f,r0,r4
0x00000000f0004074:  addi 1,r4,r5
0x00000000f0004078:  dcor rp,r6
0x00000000f000407c:  cmpb,<>,n r6,r7,0xf000411

This returned 0x66666661 instead of the expected 0x9999999f in QEMU.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Message-Id: <20190211181907.2219-6-svens@stackframe.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c