qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 02/20] target-mips: add MSA exceptions


From: Yongbok Kim
Subject: [Qemu-devel] [PATCH 02/20] target-mips: add MSA exceptions
Date: Mon, 14 Jul 2014 10:55:45 +0100

add MSA exceptions

Signed-off-by: Yongbok Kim <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]