]> git.sur5r.net Git - u-boot/commit
sandbox: Add facility to save/restore sandbox state
authorSimon Glass <sjg@chromium.org>
Sun, 10 Nov 2013 17:27:04 +0000 (10:27 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 9 Jan 2014 00:25:08 +0000 (17:25 -0700)
commit1209e2727c60d052ce875aa39bb8b9ba2edbfbdf
tree73c3077b54985be1e4424b64fbb8659aac47ed23
parent5c2859cdc30287b3593d9df88f48c31eecb0bbed
sandbox: Add facility to save/restore sandbox state

It is often useful to be able to save out the state from a sandbox test
run, for analysis or to restore it later to continue a test. Add generic
infrastructure for doing this using a device tree binary file. This is
a flexible tagged file format which is already supported by U-Boot, and
it supports hierarchy if needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Hung-ying Tyan <tyanh@chromium.org>
arch/sandbox/cpu/start.c
arch/sandbox/cpu/state.c
arch/sandbox/include/asm/state.h