Skip to content

Commit

Permalink
target-tricore: Remove the dummy interrupt boilerplate
Browse files Browse the repository at this point in the history
It can go back in when it actually does something.

Cc: Bastian Koppelmann <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Bastian Koppelmann <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
rth7680 authored and pm215 committed Sep 25, 2014
1 parent fbb96c4 commit dfdb483
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions cpu-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,6 @@ int cpu_exec(CPUArchState *env)
cc->do_interrupt(cpu);
next_tb = 0;
}
#elif defined(TARGET_TRICORE)
if ((interrupt_request & CPU_INTERRUPT_HARD)) {
cc->do_interrupt(cpu);
next_tb = 0;
}
#endif
/* The target hook has 3 exit conditions:
False when the interrupt isn't processed,
Expand Down
1 change: 0 additions & 1 deletion target-tricore/cpu-qom.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ static inline TriCoreCPU *tricore_env_get_cpu(CPUTriCoreState *env)
#define ENV_OFFSET offsetof(TriCoreCPU, env)

hwaddr tricore_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr);
void tricore_cpu_do_interrupt(CPUState *cpu);
void tricore_cpu_dump_state(CPUState *cpu, FILE *f,
fprintf_function cpu_fprintf, int flags);

Expand Down
1 change: 0 additions & 1 deletion target-tricore/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ static void tricore_cpu_class_init(ObjectClass *c, void *data)
cc->class_by_name = tricore_cpu_class_by_name;
cc->has_work = tricore_cpu_has_work;

cc->do_interrupt = tricore_cpu_do_interrupt;
cc->dump_state = tricore_cpu_dump_state;
cc->set_pc = tricore_cpu_set_pc;
cc->synchronize_from_tb = tricore_cpu_synchronize_from_tb;
Expand Down
2 changes: 0 additions & 2 deletions target-tricore/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,4 @@ static inline void cpu_pc_from_tb(CPUTriCoreState *env, TranslationBlock *tb)
env->PC = tb->pc;
}

void do_interrupt(CPUTriCoreState *env);

#endif /*__TRICORE_CPU_H__ */
4 changes: 0 additions & 4 deletions target-tricore/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ int cpu_tricore_handle_mmu_fault(CPUState *cs, target_ulong address,
return ret;
}

void tricore_cpu_do_interrupt(CPUState *cs)
{
}

TriCoreCPU *cpu_tricore_init(const char *cpu_model)
{
return TRICORE_CPU(cpu_generic_init(TYPE_TRICORE_CPU, cpu_model));
Expand Down

0 comments on commit dfdb483

Please sign in to comment.