Skip to content

Commit

Permalink
target-sparc: Mark gen_load_trap_state_at_tl() as !CONFIG_USER_ONLY
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pm215 authored and mcayland committed Jan 21, 2015
1 parent 6969462 commit a2035e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target-sparc/translate.c
Expand Up @@ -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();
Expand All @@ -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)
Expand Down

0 comments on commit a2035e8

Please sign in to comment.