Skip to content

Commit

Permalink
CRIS: Remove CRIS specific do_unassigned_access.
Browse files Browse the repository at this point in the history
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6140 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
edgar_igl committed Dec 29, 2008
1 parent 572c895 commit 0a6f8a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
12 changes: 6 additions & 6 deletions exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,7 @@ static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
#endif
#if defined(TARGET_SPARC) || defined(TARGET_CRIS)
#if defined(TARGET_SPARC)
do_unassigned_access(addr, 0, 0, 0, 1);
#endif
return 0;
Expand All @@ -2390,7 +2390,7 @@ static uint32_t unassigned_mem_readw(void *opaque, target_phys_addr_t addr)
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
#endif
#if defined(TARGET_SPARC) || defined(TARGET_CRIS)
#if defined(TARGET_SPARC)
do_unassigned_access(addr, 0, 0, 0, 2);
#endif
return 0;
Expand All @@ -2401,7 +2401,7 @@ static uint32_t unassigned_mem_readl(void *opaque, target_phys_addr_t addr)
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
#endif
#if defined(TARGET_SPARC) || defined(TARGET_CRIS)
#if defined(TARGET_SPARC)
do_unassigned_access(addr, 0, 0, 0, 4);
#endif
return 0;
Expand All @@ -2412,7 +2412,7 @@ static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
#endif
#if defined(TARGET_SPARC) || defined(TARGET_CRIS)
#if defined(TARGET_SPARC)
do_unassigned_access(addr, 1, 0, 0, 1);
#endif
}
Expand All @@ -2422,7 +2422,7 @@ static void unassigned_mem_writew(void *opaque, target_phys_addr_t addr, uint32_
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
#endif
#if defined(TARGET_SPARC) || defined(TARGET_CRIS)
#if defined(TARGET_SPARC)
do_unassigned_access(addr, 1, 0, 0, 2);
#endif
}
Expand All @@ -2432,7 +2432,7 @@ static void unassigned_mem_writel(void *opaque, target_phys_addr_t addr, uint32_
#ifdef DEBUG_UNASSIGNED
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
#endif
#if defined(TARGET_SPARC) || defined(TARGET_CRIS)
#if defined(TARGET_SPARC)
do_unassigned_access(addr, 1, 0, 0, 4);
#endif
}
Expand Down
2 changes: 0 additions & 2 deletions target-cris/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ void do_interrupt(CPUCRISState *env);
is returned if the signal was handled by the virtual CPU. */
int cpu_cris_signal_handler(int host_signum, void *pinfo,
void *puc);
void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
int is_asi, int size);

enum {
CC_OP_DYNAMIC, /* Use env->cc_op */
Expand Down
7 changes: 0 additions & 7 deletions target-cris/op_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,6 @@ void helper_rfn(void)
env->pregs[PR_CCS] |= M_FLAG;
}

void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec,
int is_asi, int size)
{
D(printf("%s addr=%x w=%d ex=%d asi=%d, size=%d\n",
__func__, addr, is_write, is_exec, is_asi, size));
}

static void evaluate_flags_writeback(uint32_t flags)
{
int x;
Expand Down

0 comments on commit 0a6f8a6

Please sign in to comment.