Add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Move various functions to misc_helper.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>