ARM: Fix bug in MicroLdrNeon templates for initiateAcc().
authorAli Saidi <Ali.Saidi@ARM.com>
Mon, 4 Apr 2011 16:42:28 +0000 (11:42 -0500)
committerAli Saidi <Ali.Saidi@ARM.com>
Mon, 4 Apr 2011 16:42:28 +0000 (11:42 -0500)
src/arch/arm/isa/templates/mem.isa

index 43a7422427338c6921b76c5bdacf83d1f8360863..cb255feda77076d90d00707b16edffc0b85ae8b4 100644 (file)
@@ -455,14 +455,18 @@ def template NeonLoadInitiateAcc {{
         Addr EA;
         Fault fault = NoFault;
 
-        %(op_src_decl)s;
+        %(op_decl)s;
+        %(mem_decl)s;
         %(op_rd)s;
         %(ea_code)s;
 
+        MemUnion memUnion;
+        uint8_t *dataPtr = memUnion.bytes;
+
         if (%(predicate_test)s)
         {
             if (fault == NoFault) {
-                fault = xc->readBytes(EA, NULL, %(size)d, memAccessFlags);
+                fault = xc->readBytes(EA, dataPtr, %(size)d, memAccessFlags);
             }
         } else {
             xc->setPredicate(false);