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:
parent
a548e9f27b
commit
3014d029a3
2 changed files with 8 additions and 3 deletions
|
@ -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>
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Add table
Reference in a new issue