From 1ef4ef4e640cae84d9706a1fbb8f3916a4bc08ab Mon Sep 17 00:00:00 2001 From: aurel32 Date: Tue, 16 Sep 2008 22:44:25 +0000 Subject: [PATCH] target-alpha: small optimizations Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5238 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-alpha/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 4143076dda..5826d555c0 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -516,7 +516,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) goto invalid_opc; case 0x08: /* LDA */ - if (ra != 31) { + if (likely(ra != 31)) { if (rb != 31) tcg_gen_addi_i64(cpu_ir[ra], cpu_ir[rb], disp16); else @@ -525,7 +525,7 @@ static always_inline int translate_one (DisasContext *ctx, uint32_t insn) break; case 0x09: /* LDAH */ - if (ra != 31) { + if (likely(ra != 31)) { if (rb != 31) tcg_gen_addi_i64(cpu_ir[ra], cpu_ir[rb], disp16 << 16); else -- GitLab