Some utilities and macros for SWGEMU.