ARM: Fix bug in MicroLdrNeon templates for initiateAcc().

This commit is contained in:
Ali Saidi 2011-04-04 11:42:28 -05:00
parent 16fcad3907
commit f926fa7711

View file

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