sim: Add gtoh/htog helpers that take an explicit endianness
Add helper functions to swap between guest byte order and host byte
order that take a guest endianness as a parameter. These functions are
called htog and htog to be consistent with the helper functions that
extract guest byte order from a compile time constant.
Signed-off-by: Andreas Sandberg <email@example.com>
Reviewed-by: Jason Lowe-Power <firstname.lastname@example.org>
1 file changed