add MSA exceptions Signed-off-by: Yongbok Kim <yongbok....@imgtec.com> --- target-mips/helper.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/target-mips/helper.c b/target-mips/helper.c index 8a997e4..ed796ff 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c @@ -396,6 +396,8 @@ static const char * const excp_names[EXCP_LAST + 1] = { [EXCP_MDMX] = "MDMX", [EXCP_C2E] = "precise coprocessor 2", [EXCP_CACHE] = "cache error", + [EXCP_MSADIS] = "MSA disabled", + [EXCP_MSAFPE] = "MSA floating point", }; target_ulong exception_resume_pc (CPUMIPSState *env) @@ -608,12 +610,18 @@ void mips_cpu_do_interrupt(CPUState *cs) case EXCP_TRAP: cause = 13; goto set_EPC; + case EXCP_MSAFPE: + cause = 14; + goto set_EPC; case EXCP_FPE: cause = 15; goto set_EPC; case EXCP_C2E: cause = 18; goto set_EPC; + case EXCP_MSADIS: + cause = 21; + goto set_EPC; case EXCP_MDMX: cause = 22; goto set_EPC; -- 1.7.4