diff options
author | Xiaojuan Yang | 2022-06-06 14:43:10 +0200 |
---|---|---|
committer | Richard Henderson | 2022-06-06 20:09:03 +0200 |
commit | 67ebd42a4884b5d6f29391beada050823108bd4f (patch) | |
tree | 0a75348ec35f63679cc2b063255e9ccd7d132d5d /target/loongarch/cpu.c | |
parent | target/loongarch: Add CSRs definition (diff) | |
download | qemu-67ebd42a4884b5d6f29391beada050823108bd4f.tar.gz qemu-67ebd42a4884b5d6f29391beada050823108bd4f.tar.xz qemu-67ebd42a4884b5d6f29391beada050823108bd4f.zip |
target/loongarch: Add basic vmstate description of CPU.
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220606124333.2060567-21-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/loongarch/cpu.c')
-rw-r--r-- | target/loongarch/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 33d9a9450d..267d96c9a8 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -336,6 +336,7 @@ static void loongarch_cpu_class_init(ObjectClass *c, void *data) cc->class_by_name = loongarch_cpu_class_by_name; cc->dump_state = loongarch_cpu_dump_state; cc->set_pc = loongarch_cpu_set_pc; + dc->vmsd = &vmstate_loongarch_cpu; cc->disas_set_info = loongarch_cpu_disas_set_info; #ifdef CONFIG_TCG cc->tcg_ops = &loongarch_tcg_ops; |