From: Antonio Borneo Date: Mon, 26 Nov 2018 14:52:51 +0000 (+0100) Subject: flash/stmsmi: fix byte order for big-endian host X-Git-Tag: v0.11.0-rc1~939 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=9d67f00670f861335f5dad1b2e03b3871e76545c;hp=9d67f00670f861335f5dad1b2e03b3871e76545c;ds=sidebyside flash/stmsmi: fix byte order for big-endian host The original code was written for and tested on little-endian host only. Rewrite it to be independent by host endianess. Not tested on real HW; I don't own anymore a SPEAr device. Change-Id: I2f427a804693f56cb9dea4936c525eb814c48c28 Signed-off-by: Antonio Borneo Reported-by: Tomas Vanek Reviewed-on: http://openocd.zylin.com/4778 Tested-by: jenkins Reviewed-by: Tomas Vanek ---