diff options
author | Andrzej Zaborowski <balrog@zabor.org> | 2010-05-15 14:31:27 +0200 |
---|---|---|
committer | Andrzej Zaborowski <balrog@zabor.org> | 2010-05-15 14:31:27 +0200 |
commit | e5d3b98d5372c318e13a2f128f2198926c019990 (patch) | |
tree | 9ae414470ea13e8606d940c59c3f5f7412ac52a4 /hw | |
parent | 26a823305d7fdf369453a8caf5efdd467acddc8c (diff) | |
download | qemu-e5d3b98d5372c318e13a2f128f2198926c019990.zip qemu-e5d3b98d5372c318e13a2f128f2198926c019990.tar.gz qemu-e5d3b98d5372c318e13a2f128f2198926c019990.tar.bz2 |
tmp105: update the register in post_load where it needs updating.
This was the only user of .post_save as noticed by Jan Kiszka and
seems to have been added there wrongly during conversion to
VMStateDescription.
Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/tmp105.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c index 8343aff..f7e6f2b 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c @@ -173,16 +173,12 @@ static void tmp105_event(i2c_slave *i2c, enum i2c_event event) s->len = 0; } -static void tmp105_post_save(void *opaque) -{ - TMP105State *s = opaque; - s->faults = tmp105_faultq[(s->config >> 3) & 3]; /* F */ -} - static int tmp105_post_load(void *opaque, int version_id) { TMP105State *s = opaque; + s->faults = tmp105_faultq[(s->config >> 3) & 3]; /* F */ + tmp105_interrupt_update(s); return 0; } @@ -192,7 +188,6 @@ static const VMStateDescription vmstate_tmp105 = { .version_id = 0, .minimum_version_id = 0, .minimum_version_id_old = 0, - .post_save = tmp105_post_save, .post_load = tmp105_post_load, .fields = (VMStateField []) { VMSTATE_UINT8(len, TMP105State), |