提交 38a64f9d 编写于 作者: B bellard

fixed b[l] decoding


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@987 c046a42c-6fe2-441c-8c8c-71466251a162
上级 e02aa686
......@@ -1520,7 +1520,10 @@ GEN_HANDLER(stfiwx, 0x1F, 0x17, 0x1E, 0x00000001, PPC_FLOAT)
/* b ba bl bla */
GEN_HANDLER(b, 0x12, 0xFF, 0xFF, 0x00000000, PPC_FLOW)
{
uint32_t li = s_ext24(LI(ctx->opcode)), target;
uint32_t li, target;
/* sign extend LI */
li = ((int32_t)LI(ctx->opcode) << 6) >> 6;
if (AA(ctx->opcode) == 0)
target = ctx->nip + li - 4;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册