target/openrisc: Implement full vmstate serialization
authorStafford Horne <shorne@gmail.com>
Sun, 16 Apr 2017 10:44:58 +0000 (19:44 +0900)
committerStafford Horne <shorne@gmail.com>
Thu, 4 May 2017 00:39:14 +0000 (09:39 +0900)
commitacf57591c01cd0b1667e4f0ed2176d59cb5827aa
treee9bf90b184492a614b829983580256c9eb4e757a
parentb75c958d888f3c973bae6c6471edacf53fb27182
target/openrisc: Implement full vmstate serialization

Previously serialization did not persist the tlb, timer, pic and other
key state items.  This meant snapshotting and restoring a running os
would crash. After adding these I am able to take snapshots of a
running linux os and restore at a later time.

I am currently not trying to maintain capatibility with older versions
as I do not believe this really worked before or anyone used it.

Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/machine.c