emaclite_v4_1: Fix for extra write in emaclite

This patch removes the extra write operation taking place
in XEmacLite_AlignedWrite while writing data to destination
address.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
This commit is contained in:
Naga Sureshkumar Relli 2015-07-13 16:29:21 +05:30 committed by Nava kishore Manne
parent a548e9f27b
commit 3014d029a3
2 changed files with 8 additions and 3 deletions

View file

@ -193,6 +193,9 @@
* driver is compiled with ARM toolchain.
* 3.04a srt 04/13/13 Removed warnings (CR 705000).
* 4.0 adk 19/12/13 Updated as per the New Tcl API's
* 4.1 nsk 07/13/15 Added Length check in XEmacLite_AlignedWrite function
* in xemaclite_l.c file to avoid extra write operation
* (CR 843707).
*
* </pre>
*

View file

@ -55,6 +55,8 @@
* XEmacLite_AlignedRead functions to use volatile
* variables so that they are not optimized.
* 3.00a ktn 10/22/09 The macros have been renamed to remove _m from the name.
* 4.1 nsk 07/13/15 Added Length check in XEmacLite_AlignedWrite function
* to avoid extra write operation (CR 843707).
*
* </pre>
*
@ -367,9 +369,9 @@ void XEmacLite_AlignedWrite(void *SrcPtr, u32 *DestPtr, unsigned ByteCount)
for (Index = 0; Index < Length; Index++) {
*To8Ptr++ = *From8Ptr++;
}
*To32Ptr++ = AlignBuffer;
if (Length) {
*To32Ptr++ = AlignBuffer;
}
}
/******************************************************************************/