Skip to content

Commit

Permalink
target-unicore: Remove unused functions
Browse files Browse the repository at this point in the history
The functions gen_st64, gen_ld64, gen_mulxy, ucf64_itod and
ucf64_dtoi are all unused; remove them.

Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
pm215 authored and Michael Tokarev committed Jun 24, 2014
1 parent 0d65942 commit 25b93db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
28 changes: 0 additions & 28 deletions target-unicore32/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,6 @@ static inline TCGv gen_ld32(TCGv addr, int index)
return tmp;
}

static inline TCGv_i64 gen_ld64(TCGv addr, int index)
{
TCGv_i64 tmp = tcg_temp_new_i64();
tcg_gen_qemu_ld64(tmp, addr, index);
return tmp;
}

static inline void gen_st8(TCGv val, TCGv addr, int index)
{
tcg_gen_qemu_st8(val, addr, index);
Expand All @@ -601,12 +594,6 @@ static inline void gen_st32(TCGv val, TCGv addr, int index)
dead_tmp(val);
}

static inline void gen_st64(TCGv_i64 val, TCGv addr, int index)
{
tcg_gen_qemu_st64(val, addr, index);
tcg_temp_free_i64(val);
}

static inline void gen_set_pc_im(uint32_t val)
{
tcg_gen_movi_i32(cpu_R[31], val);
Expand Down Expand Up @@ -1128,21 +1115,6 @@ static inline void gen_jmp(DisasContext *s, uint32_t dest)
}
}

static inline void gen_mulxy(TCGv t0, TCGv t1, int x, int y)
{
if (x) {
tcg_gen_sari_i32(t0, t0, 16);
} else {
gen_sxth(t0);
}
if (y) {
tcg_gen_sari_i32(t1, t1, 16);
} else {
gen_sxth(t1);
}
tcg_gen_mul_i32(t0, t0, t1);
}

/* Returns nonzero if access to the PSR is not permitted. Marks t0 as dead. */
static int gen_set_psr(DisasContext *s, uint32_t mask, int bsr, TCGv t0)
{
Expand Down
22 changes: 0 additions & 22 deletions target-unicore32/ucf64_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,28 +290,6 @@ static inline uint32_t ucf64_stoi(float32 s)
return v.i;
}

static inline float64 ucf64_itod(uint64_t i)
{
union {
uint64_t i;
float64 d;
} v;

v.i = i;
return v.d;
}

static inline uint64_t ucf64_dtoi(float64 d)
{
union {
uint64_t i;
float64 d;
} v;

v.d = d;
return v.i;
}

/* Integer to float conversion. */
float32 HELPER(ucf64_si2sf)(float32 x, CPUUniCore32State *env)
{
Expand Down

0 comments on commit 25b93db

Please sign in to comment.