mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/riscv: Add basic vmstate description of CPU
Add basic CPU state description to the newly created machine.c Signed-off-by: Yifei Jiang <jiangyifei@huawei.com> Signed-off-by: Yipeng Yin <yinyipeng1@huawei.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20201026115530.304-3-jiangyifei@huawei.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
284d697c74
commit
f7697f0e62
4 changed files with 81 additions and 8 deletions
|
@ -38,6 +38,10 @@ target_ulong fclass_d(uint64_t frs1);
|
|||
#define SEW32 2
|
||||
#define SEW64 3
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
extern const VMStateDescription vmstate_riscv_cpu;
|
||||
#endif
|
||||
|
||||
static inline uint64_t nanbox_s(float32 f)
|
||||
{
|
||||
return f | MAKE_64BIT_MASK(32, 32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue