From d297f464d386f85eda77263d81c598c7aaff46d9 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Mon, 30 Jun 2008 08:59:49 +0000 Subject: Avoid CRIS related warnings by Jan Kiszka. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4804 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-cris/mmu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target-cris/mmu.c') diff --git a/target-cris/mmu.c b/target-cris/mmu.c index 86f625b753..122e652e4a 100644 --- a/target-cris/mmu.c +++ b/target-cris/mmu.c @@ -30,7 +30,11 @@ #include "mmu.h" #include "exec-all.h" +#ifdef DEBUG +#define D(x) x +#else #define D(x) +#endif void cris_mmu_init(CPUState *env) { @@ -95,6 +99,7 @@ static inline void set_field(uint32_t *dst, unsigned int val, *dst |= val; } +#ifdef DEBUG static void dump_tlb(CPUState *env, int mmu) { int set; @@ -113,6 +118,7 @@ static void dump_tlb(CPUState *env, int mmu) } } } +#endif /* rw 0 = read, 1 = write, 2 = exec. */ static int cris_mmu_translate_page(struct cris_mmu_result_t *res, -- cgit v1.2.3