cmd: replace the cast of the memory access to a fixed bit type in itest
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Wed, 4 May 2016 05:20:04 +0000 (14:20 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 14:01:07 +0000 (10:01 -0400)
commitdafd64888c21abc43edbe7634b8edaacf9e2fe5c
tree2e15ae2288084dc8ad25376191072037f47a6766
parenta565386762162019c297b8537f17bb3f4d4d4d88
cmd: replace the cast of the memory access to a fixed bit type in itest

This patch fixes a bug that long word(.l) memory access in 'itest'
command reads the 8bytes of the actual memory on 64-bit architecture.
The cast to the memory pointer should use a fixed bit type.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/itest.c