diff options
Diffstat (limited to 'target-mips/helper.h')
-rw-r--r-- | target-mips/helper.h | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/target-mips/helper.h b/target-mips/helper.h index cee92fc823..ddc82f1df5 100644 --- a/target-mips/helper.h +++ b/target-mips/helper.h @@ -12,3 +12,121 @@ DEF_HELPER(void, do_clz, (void)) DEF_HELPER(void, do_dclo, (void)) DEF_HELPER(void, do_dclz, (void)) #endif + +/* CP0 helpers */ +#ifndef CONFIG_USER_ONLY +DEF_HELPER(void, do_mfc0_mvpcontrol, (void)) +DEF_HELPER(void, do_mfc0_mvpconf0, (void)) +DEF_HELPER(void, do_mfc0_mvpconf1, (void)) +DEF_HELPER(void, do_mfc0_random, (void)) +DEF_HELPER(void, do_mfc0_tcstatus, (void)) +DEF_HELPER(void, do_mftc0_tcstatus, (void)) +DEF_HELPER(void, do_mfc0_tcbind, (void)) +DEF_HELPER(void, do_mftc0_tcbind, (void)) +DEF_HELPER(void, do_mfc0_tcrestart, (void)) +DEF_HELPER(void, do_mftc0_tcrestart, (void)) +DEF_HELPER(void, do_mfc0_tchalt, (void)) +DEF_HELPER(void, do_mftc0_tchalt, (void)) +DEF_HELPER(void, do_mfc0_tccontext, (void)) +DEF_HELPER(void, do_mftc0_tccontext, (void)) +DEF_HELPER(void, do_mfc0_tcschedule, (void)) +DEF_HELPER(void, do_mftc0_tcschedule, (void)) +DEF_HELPER(void, do_mfc0_tcschefback, (void)) +DEF_HELPER(void, do_mftc0_tcschefback, (void)) +DEF_HELPER(void, do_mfc0_count, (void)) +DEF_HELPER(void, do_mftc0_entryhi, (void)) +DEF_HELPER(void, do_mftc0_status, (void)) +DEF_HELPER(void, do_mfc0_lladdr, (void)) +DEF_HELPER(void, do_mfc0_watchlo, (uint32_t sel)) +DEF_HELPER(void, do_mfc0_watchhi, (uint32_t sel)) +DEF_HELPER(void, do_mfc0_debug, (void)) +DEF_HELPER(void, do_mftc0_debug, (void)) +#ifdef TARGET_MIPS64 +DEF_HELPER(void, do_dmfc0_tcrestart, (void)) +DEF_HELPER(void, do_dmfc0_tchalt, (void)) +DEF_HELPER(void, do_dmfc0_tccontext, (void)) +DEF_HELPER(void, do_dmfc0_tcschedule, (void)) +DEF_HELPER(void, do_dmfc0_tcschefback, (void)) +DEF_HELPER(void, do_dmfc0_lladdr, (void)) +DEF_HELPER(void, do_dmfc0_watchlo, (uint32_t sel)) +#endif /* TARGET_MIPS64 */ + +DEF_HELPER(void, do_mtc0_index, (void)) +DEF_HELPER(void, do_mtc0_mvpcontrol, (void)) +DEF_HELPER(void, do_mtc0_vpecontrol, (void)) +DEF_HELPER(void, do_mtc0_vpeconf0, (void)) +DEF_HELPER(void, do_mtc0_vpeconf1, (void)) +DEF_HELPER(void, do_mtc0_yqmask, (void)) +DEF_HELPER(void, do_mtc0_vpeopt, (void)) +DEF_HELPER(void, do_mtc0_entrylo0, (void)) +DEF_HELPER(void, do_mtc0_tcstatus, (void)) +DEF_HELPER(void, do_mttc0_tcstatus, (void)) +DEF_HELPER(void, do_mtc0_tcbind, (void)) +DEF_HELPER(void, do_mttc0_tcbind, (void)) +DEF_HELPER(void, do_mtc0_tcrestart, (void)) +DEF_HELPER(void, do_mttc0_tcrestart, (void)) +DEF_HELPER(void, do_mtc0_tchalt, (void)) +DEF_HELPER(void, do_mttc0_tchalt, (void)) +DEF_HELPER(void, do_mtc0_tccontext, (void)) +DEF_HELPER(void, do_mttc0_tccontext, (void)) +DEF_HELPER(void, do_mtc0_tcschedule, (void)) +DEF_HELPER(void, do_mttc0_tcschedule, (void)) +DEF_HELPER(void, do_mtc0_tcschefback, (void)) +DEF_HELPER(void, do_mttc0_tcschefback, (void)) +DEF_HELPER(void, do_mtc0_entrylo1, (void)) +DEF_HELPER(void, do_mtc0_context, (void)) +DEF_HELPER(void, do_mtc0_pagemask, (void)) +DEF_HELPER(void, do_mtc0_pagegrain, (void)) +DEF_HELPER(void, do_mtc0_wired, (void)) +DEF_HELPER(void, do_mtc0_srsconf0, (void)) +DEF_HELPER(void, do_mtc0_srsconf1, (void)) +DEF_HELPER(void, do_mtc0_srsconf2, (void)) +DEF_HELPER(void, do_mtc0_srsconf3, (void)) +DEF_HELPER(void, do_mtc0_srsconf4, (void)) +DEF_HELPER(void, do_mtc0_hwrena, (void)) +DEF_HELPER(void, do_mtc0_count, (void)) +DEF_HELPER(void, do_mtc0_entryhi, (void)) +DEF_HELPER(void, do_mttc0_entryhi, (void)) +DEF_HELPER(void, do_mtc0_compare, (void)) +DEF_HELPER(void, do_mtc0_status, (void)) +DEF_HELPER(void, do_mttc0_status, (void)) +DEF_HELPER(void, do_mtc0_intctl, (void)) +DEF_HELPER(void, do_mtc0_srsctl, (void)) +DEF_HELPER(void, do_mtc0_cause, (void)) +DEF_HELPER(void, do_mtc0_ebase, (void)) +DEF_HELPER(void, do_mtc0_config0, (void)) +DEF_HELPER(void, do_mtc0_config2, (void)) +DEF_HELPER(void, do_mtc0_watchlo, (uint32_t sel)) +DEF_HELPER(void, do_mtc0_watchhi, (uint32_t sel)) +DEF_HELPER(void, do_mtc0_xcontext, (void)) +DEF_HELPER(void, do_mtc0_framemask, (void)) +DEF_HELPER(void, do_mtc0_debug, (void)) +DEF_HELPER(void, do_mttc0_debug, (void)) +DEF_HELPER(void, do_mtc0_performance0, (void)) +DEF_HELPER(void, do_mtc0_taglo, (void)) +DEF_HELPER(void, do_mtc0_datalo, (void)) +DEF_HELPER(void, do_mtc0_taghi, (void)) +DEF_HELPER(void, do_mtc0_datahi, (void)) +#endif /* !CONFIG_USER_ONLY */ + +/* MIPS MT functions */ +DEF_HELPER(void, do_mftgpr, (uint32_t sel)) +DEF_HELPER(void, do_mftlo, (uint32_t sel)) +DEF_HELPER(void, do_mfthi, (uint32_t sel)) +DEF_HELPER(void, do_mftacx, (uint32_t sel)) +DEF_HELPER(void, do_mftdsp, (void)) +DEF_HELPER(void, do_mttgpr, (uint32_t sel)) +DEF_HELPER(void, do_mttlo, (uint32_t sel)) +DEF_HELPER(void, do_mtthi, (uint32_t sel)) +DEF_HELPER(void, do_mttacx, (uint32_t sel)) +DEF_HELPER(void, do_mttdsp, (void)) +DEF_HELPER(void, do_dmt, (void)) +DEF_HELPER(void, do_emt, (void)) +DEF_HELPER(void, do_dvpe, (void)) +DEF_HELPER(void, do_evpe, (void)) +DEF_HELPER(void, do_fork, (void)) +DEF_HELPER(void, do_yield, (void)) + +/* CP1 functions */ +DEF_HELPER(void, do_cfc1, (uint32_t reg)) +DEF_HELPER(void, do_ctc1, (uint32_t reg)) |