From patchwork Mon Mar 29 17:48:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [09/13] target-alpha: Update commentary for opcode 0x1A. Date: Mon, 29 Mar 2010 07:48:14 -0000 From: Richard Henderson X-Patchwork-Id: 49662 Message-Id: To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net Signed-off-by: Richard Henderson --- target-alpha/translate.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index dfe55c3..2360a0e 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2534,13 +2534,16 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn) break; #endif case 0x1A: - if (rb != 31) + /* JMP, JSR, RET, JSR_COROUTINE. These only differ by the branch + prediction stack action, which of course we don't implement. */ + if (rb != 31) { tcg_gen_andi_i64(cpu_pc, cpu_ir[rb], ~3); - else + } else { tcg_gen_movi_i64(cpu_pc, 0); - if (ra != 31) + } + if (ra != 31) { tcg_gen_movi_i64(cpu_ir[ra], ctx->pc); - /* Those four jumps only differ by the branch prediction hint */ + } ret = EXIT_PC_UPDATED; break; case 0x1B: