diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-12-23 22:11:20 +0000 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2015-01-21 16:18:01 +0000 |
commit | a2035e83fd60e5b66644d321816ed634b908b4ee (patch) | |
tree | 9258e18200a33448dfe6949c4817bcea07b768ed /target-sparc/translate.c | |
parent | 69694625e86aebb135b56c4aaafefd5c1d17bb3c (diff) | |
download | qemu-a2035e83fd60e5b66644d321816ed634b908b4ee.zip qemu-a2035e83fd60e5b66644d321816ed634b908b4ee.tar.gz qemu-a2035e83fd60e5b66644d321816ed634b908b4ee.tar.bz2 |
target-sparc: Mark gen_load_trap_state_at_tl() as !CONFIG_USER_ONLY
The function gen_load_trap_state_at_tl() is only used in the softmmu
configs; wrap it in #ifndef CONFIG_USER_ONLY to avoid clang compiler
warnings in linux-user builds.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r-- | target-sparc/translate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 834b50f..68527d5 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -2300,6 +2300,7 @@ static void gen_fmovq(DisasContext *dc, DisasCompare *cmp, int rd, int rs) gen_update_fprs_dirty(qd); } +#ifndef CONFIG_USER_ONLY static inline void gen_load_trap_state_at_tl(TCGv_ptr r_tsptr, TCGv_ptr cpu_env) { TCGv_i32 r_tl = tcg_temp_new_i32(); @@ -2324,6 +2325,7 @@ static inline void gen_load_trap_state_at_tl(TCGv_ptr r_tsptr, TCGv_ptr cpu_env) tcg_temp_free_i32(r_tl); } +#endif static void gen_edge(DisasContext *dc, TCGv dst, TCGv s1, TCGv s2, int width, bool cc, bool left) |