Fix restore of older snapshots for target-i386 on big endian hosts
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 29 Oct 2008 14:16:31 +0000 (14:16 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 29 Oct 2008 14:16:31 +0000 (14:16 +0000)
commitd0a5ac4edba2d3815242888ddb70a3c16df6e0f7
tree604986d3b48caf6b9dc6c7ba1be368fd03f74b5c
parentb52e735b132325467b448358f827a7042efc9cca
Fix restore of older snapshots for target-i386 on big endian hosts

A target_ulong may be 64-bit.  Passing it to a function expecting a 32-bit
pointer is wrong and unfortunately happens to work for x86.  It won't work on
big endian hosts though.  Change the code to work properly on all hosts.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5570 c046a42c-6fe2-441c-8c8c-71466251a162
target-i386/machine.c