hw/intc/loongarch_extioi: Add vmstate post_load support
authorBibo Mao <maobibo@loongson.cn>
Fri, 15 Dec 2023 09:42:58 +0000 (17:42 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 11 Jan 2024 11:22:47 +0000 (19:22 +0800)
commit428a6ef4396aa910c86e16c1e4409e3927a3698e
tree86741ce7db6052e55d6e610ccab104e32eeb9051
parent10a8f7d25a26e7b3b2886d2552738118d1adf371
hw/intc/loongarch_extioi: Add vmstate post_load support

There are elements sw_ipmap and sw_coremap, which is usd to speed
up irq injection flow. They are saved and restored in vmstate during
migration, indeed they can calculated from hw registers. Here
post_load is added for get sw_ipmap and sw_coremap from extioi hw
state.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20231215100333.3933632-5-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_extioi.c