rewritten xsave/xrestor for more modular functionality. todo: replace walk through state using simple for loop

git-svn-id: svn://svn.code.sf.net/p/bochs/code/trunk@12201 6c8e4198-a580-4521-a02f-c9ae86df1db9