target-mips: Replace macros by inline functions
authorStefan Weil <sw@weilnetz.de>
Tue, 1 Jan 2013 18:44:31 +0000 (19:44 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 8 Jan 2013 10:55:39 +0000 (11:55 +0100)
commite320d05a531ed4991a87cfe0a4c280563fb88788
treeed640c36384c28e0b06702793c0d9607e4f34110
parente1a4019cf13ddf2441496c2e613faba3a891cddf
target-mips: Replace macros by inline functions

The macros RESTORE_ROUNDING_MODE and RESTORE_FLUSH_MODE silently used
variable env from their callers. Using inline functions with env passed
as a function argument is more transparent.

This modification was proposed by Peter Maydell.

Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Eric Johnson <ericj@mips.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/op_helper.c