diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-25 13:01:12 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-13 06:44:37 -0700 |
commit | a300dad3e8e4eda8addc5f308c8ff1941f0221be (patch) | |
tree | 71c54c97e5af86c4ef13b3f2af02fa2c4563930c | |
parent | ab554f17a109bd23713ccdf9473c4bcdf999eebe (diff) | |
download | qemu-a300dad3e8e4eda8addc5f308c8ff1941f0221be.zip qemu-a300dad3e8e4eda8addc5f308c8ff1941f0221be.tar.gz qemu-a300dad3e8e4eda8addc5f308c8ff1941f0221be.tar.bz2 |
target/hppa: Avoid tcg_const_i64 in trans_fid_f
Use a C test instead of a pre-processor test for the id.
Use tcg_constant_i64 instead of tcg_const_i64.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/hppa/translate.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index cb4fd1f..3ea50d0 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -3547,12 +3547,16 @@ static void gen_fcpy_f(TCGv_i32 dst, TCGv_env unused, TCGv_i32 src) static bool trans_fid_f(DisasContext *ctx, arg_fid_f *a) { + uint64_t ret; + + if (TARGET_REGISTER_BITS == 64) { + ret = 0x13080000000000ULL; /* PA8700 (PCX-W2) */ + } else { + ret = 0x0f080000000000ULL; /* PA7300LC (PCX-L2) */ + } + nullify_over(ctx); -#if TARGET_REGISTER_BITS == 64 - save_frd(0, tcg_const_i64(0x13080000000000ULL)); /* PA8700 (PCX-W2) */ -#else - save_frd(0, tcg_const_i64(0x0f080000000000ULL)); /* PA7300LC (PCX-L2) */ -#endif + save_frd(0, tcg_constant_i64(ret)); return nullify_end(ctx); } |