summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-03-27 12:53:06 -1000
committerRichard Henderson <richard.henderson@linaro.org>2024-05-15 09:58:45 +0200
commit0bb0202962a5f77d1e4cac4533628bb7a566de54 (patch)
tree7411289da3e81d0c6e112c6a55865ae9fcc6c50c
parent019f41591d95ffd7f1d49ace4626aec2cbec19d8 (diff)
downloadfocaccia-qemu-0bb0202962a5f77d1e4cac4533628bb7a566de54.tar.gz
focaccia-qemu-0bb0202962a5f77d1e4cac4533628bb7a566de54.zip
target/hppa: Use umax in do_ibranch_priv
Using umax is clearer than the same operation using movcond.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--target/hppa/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hppa/translate.c b/target/hppa/translate.c
index 1758c6e1d4..e9ba792065 100644
--- a/target/hppa/translate.c
+++ b/target/hppa/translate.c
@@ -1982,7 +1982,7 @@ static TCGv_i64 do_ibranch_priv(DisasContext *ctx, TCGv_i64 offset)
         dest = tcg_temp_new_i64();
         tcg_gen_andi_i64(dest, offset, -4);
         tcg_gen_ori_i64(dest, dest, ctx->privilege);
-        tcg_gen_movcond_i64(TCG_COND_GTU, dest, dest, offset, dest, offset);
+        tcg_gen_umax_i64(dest, dest, offset);
         break;
     }
     return dest;