arm: Add m5_fail support for aarch64
authorRicardo Alves <ricardo.alves@arm.com>
Thu, 15 Sep 2016 17:21:24 +0000 (18:21 +0100)
committerRicardo Alves <ricardo.alves@arm.com>
Thu, 15 Sep 2016 17:21:24 +0000 (18:21 +0100)
Change-Id: Id2acbc09772be310a0eb9e33295afab07e08a4fa
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/isa/formats/aarch64.isa
src/arch/arm/isa/insts/m5ops.isa

index c3fa742747753aeeb8efe1223be7dd622aeb75fb..1252cdf25c04052b5802afcf619fb6f3450fa1ea 100644 (file)
@@ -2013,6 +2013,7 @@ namespace Aarch64
           case 0x11: return new Deprecated_ivle(machInst);
           case 0x20: return new Deprecated_exit (machInst);
           case 0x21: return new M5exit64(machInst);
+          case 0x22: return new M5fail64(machInst);
           case 0x31: return new Loadsymbol(machInst);
           case 0x30: return new Initparam64(machInst);
           case 0x40: return new Resetstats64(machInst);
index efe88c73a1034b55ff06b342c6b89eeaea7c425b..e931478590b183c838e93cf86059c0aede3d71e4 100644 (file)
@@ -247,6 +247,11 @@ let {{
     m5fail_code = '''
         PseudoInst::m5fail(xc->tcBase(), join32to64(R1, R0), join32to64(R3, R2));
     '''
+
+    m5fail_code64 = '''
+        PseudoInst::m5fail(xc->tcBase(), X0, X1);
+    '''
+
     m5failIop = InstObjParams("m5fail", "M5fail", "PredOp",
                                    { "code": m5fail_code,
                                      "predicate_test": predicateTest },
@@ -255,6 +260,15 @@ let {{
     decoder_output += BasicConstructor.subst(m5failIop)
     exec_output += PredOpExecute.subst(m5failIop)
 
+    m5failIop = InstObjParams("m5fail", "M5fail64", "PredOp",
+                                   { "code": m5fail_code64,
+                                     "predicate_test": predicateTest },
+                                     ["No_OpClass", "IsNonSpeculative"])
+    header_output += BasicDeclare.subst(m5failIop)
+    decoder_output += BasicConstructor.subst(m5failIop)
+    exec_output += PredOpExecute.subst(m5failIop)
+
+
     m5exitIop = InstObjParams("m5exit", "M5exit64", "PredOp",
                                    { "code": m5exit_code64,
                                      "predicate_test": predicateTest },