diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/arm/isa/templates/neon64.isa | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/arm/isa/templates/neon64.isa b/src/arch/arm/isa/templates/neon64.isa index 6356073c5..336187fd8 100644 --- a/src/arch/arm/isa/templates/neon64.isa +++ b/src/arch/arm/isa/templates/neon64.isa @@ -332,7 +332,8 @@ def template NeonLoadCompleteAcc64 {{ %(op_decl)s; %(op_rd)s; - MemUnion &memUnion = *(MemUnion *)pkt->getPtr<uint8_t>(); + MemUnion memUnion { { } }; + memcpy(&memUnion, pkt->getPtr<uint8_t>(), pkt->getSize()); if (fault == NoFault) { %(memacc_code)s; |