Update for exception support changes.

This commit is contained in:
Thomas Doerfler
2009-10-23 07:32:46 +00:00
parent cc1e864dfe
commit 2d2de4eba1
103 changed files with 1609 additions and 1588 deletions

View File

@@ -106,17 +106,28 @@ _PPC_FEAT_DECL(has_epic)
_PPC_FEAT_DECL(has_shadowed_gprs)
_PPC_FEAT_DECL(has_ivpr_and_ivor)
static inline bool ppc_cpu_is_e300()
#undef _PPC_FEAT_DECL
static inline ppc_cpu_id_t ppc_cpu_current(void)
{
if (current_ppc_cpu == PPC_UNKNOWN) {
get_ppc_cpu_type();
}
return current_ppc_cpu == PPC_e300c1
|| current_ppc_cpu == PPC_e300c2
|| current_ppc_cpu == PPC_e300c3;
return current_ppc_cpu;
}
static inline bool ppc_cpu_is_e300()
{
if (ppc_cpu_current() == PPC_UNKNOWN) {
get_ppc_cpu_type();
}
return ppc_cpu_current() == PPC_e300c1
|| ppc_cpu_current() == PPC_e300c2
|| ppc_cpu_current() == PPC_e300c3;
}
static inline bool ppc_cpu_is(ppc_cpu_id_t cpu)
{
return ppc_cpu_current() == cpu;
}
#undef _PPC_FEAT_DECL
#endif /* ASM */
#endif