ARM: Add templates for VFP load/store multiple instructions.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:04 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:04 +0000 (12:58 -0500)
src/arch/arm/isa/templates/macromem.isa

index de5279392429967047861b9421e70756faf487f2..400342a292daee1fe0582f5fc942e164ed14ac42 100644 (file)
@@ -131,3 +131,30 @@ def template MacroMemConstructor {{
 }
 
 }};
+
+def template MacroVFPMemDeclare {{
+/**
+ * Static instructions class for a store multiple instruction
+ */
+class %(class_name)s : public %(base_class)s
+{
+    public:
+        // Constructor
+        %(class_name)s(ExtMachInst machInst, IntRegIndex rn,
+                RegIndex vd, bool single, bool up, bool writeback,
+                bool load, uint32_t offset);
+        %(BasicExecPanic)s
+};
+}};
+
+def template MacroVFPMemConstructor {{
+%(class_name)s::%(class_name)s(ExtMachInst machInst, IntRegIndex rn,
+        RegIndex vd, bool single, bool up, bool writeback, bool load,
+        uint32_t offset)
+    : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, rn,
+                     vd, single, up, writeback, load, offset)
+{
+    %(constructor)s;
+}
+
+}};