target-sh4: Use glib allocator in movcal helper
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Jul 2016 12:50:59 +0000 (13:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Jul 2016 10:33:24 +0000 (11:33 +0100)
commit01a720125f5e2f0a23d2682b39dead2fcc820066
tree58ee4815121e6ce5db432d42adfe363873c6e298
parente3643d32ee805d8a7b248526a507452c484a98e5
target-sh4: Use glib allocator in movcal helper

Coverity spots that helper_movcal() calls malloc() but doesn't
check for failure. Fix this by switching to the glib allocation
functions, which abort on allocation failure.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1468327859-21385-1-git-send-email-peter.maydell@linaro.org
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/op_helper.c