mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Delete some unused macros detected with -Wp,-Wunused-macros use
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6856 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7f70c93716
commit
d78f399542
22 changed files with 3 additions and 80 deletions
|
@ -1366,8 +1366,6 @@ void sparc_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
|
|||
"fpu_version mmu_version nwindows\n");
|
||||
}
|
||||
|
||||
#define GET_FLAG(a,b) ((env->psr & a)?b:'-')
|
||||
|
||||
void cpu_dump_state(CPUState *env, FILE *f,
|
||||
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
|
||||
int flags)
|
||||
|
@ -1411,6 +1409,9 @@ void cpu_dump_state(CPUState *env, FILE *f,
|
|||
env->cansave, env->canrestore, env->otherwin, env->wstate,
|
||||
env->cleanwin, env->nwindows - 1 - env->cwp);
|
||||
#else
|
||||
|
||||
#define GET_FLAG(a,b) ((env->psr & a)?b:'-')
|
||||
|
||||
cpu_fprintf(f, "psr: 0x%08x -> %c%c%c%c %c%c%c wim: 0x%08x\n",
|
||||
GET_PSR(env), GET_FLAG(PSR_ZERO, 'Z'), GET_FLAG(PSR_OVF, 'V'),
|
||||
GET_FLAG(PSR_NEG, 'N'), GET_FLAG(PSR_CARRY, 'C'),
|
||||
|
|
|
@ -29,8 +29,6 @@ do { printf("MXCC: " fmt , ##args); } while (0)
|
|||
#ifdef DEBUG_ASI
|
||||
#define DPRINTF_ASI(fmt, args...) \
|
||||
do { printf("ASI: " fmt , ##args); } while (0)
|
||||
#else
|
||||
#define DPRINTF_ASI(fmt, args...) do {} while (0)
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_SPARC64
|
||||
|
|
|
@ -92,11 +92,9 @@ typedef struct DisasContext {
|
|||
#define GET_FIELD_SPs(x,a,b) sign_extend (GET_FIELD_SP(x,a,b), ((b) - (a) + 1))
|
||||
|
||||
#ifdef TARGET_SPARC64
|
||||
#define FFPREG(r) (r)
|
||||
#define DFPREG(r) (((r & 1) << 5) | (r & 0x1e))
|
||||
#define QFPREG(r) (((r & 1) << 5) | (r & 0x1c))
|
||||
#else
|
||||
#define FFPREG(r) (r)
|
||||
#define DFPREG(r) (r & 0x1e)
|
||||
#define QFPREG(r) (r & 0x1c)
|
||||
#endif
|
||||
|
@ -2846,24 +2844,6 @@ static void disas_sparc_insn(DisasContext * dc)
|
|||
#undef FMOVSCC
|
||||
#undef FMOVDCC
|
||||
#undef FMOVQCC
|
||||
#define FMOVCC(size_FDQ, icc) \
|
||||
{ \
|
||||
TCGv r_cond; \
|
||||
int l1; \
|
||||
\
|
||||
l1 = gen_new_label(); \
|
||||
r_cond = tcg_temp_new(); \
|
||||
cond = GET_FIELD_SP(insn, 14, 17); \
|
||||
gen_cond(r_cond, icc, cond); \
|
||||
tcg_gen_brcondi_tl(TCG_COND_EQ, r_cond, \
|
||||
0, l1); \
|
||||
glue(glue(gen_op_load_fpr_, size_FDQ), T0) \
|
||||
(glue(size_FDQ, FPREG(rs2))); \
|
||||
glue(glue(gen_op_store_, size_FDQ), T0_fpr) \
|
||||
(glue(size_FDQ, FPREG(rd))); \
|
||||
gen_set_label(l1); \
|
||||
tcg_temp_free(r_cond); \
|
||||
}
|
||||
#define FMOVSCC(icc) \
|
||||
{ \
|
||||
TCGv r_cond; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue