mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
PPC: KVM: fix "set one register"
Due to missing @one_reg_id assignment in _spr_register(), the kvm_get_one_reg/kvm_set_one_reg API has never really been working. This reenables the API by assigning the @one_reg_id field in the SPR descriptor. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
363248e8c9
commit
7a7c05d77d
@ -627,6 +627,9 @@ static inline void _spr_register(CPUPPCState *env, int num,
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
spr->oea_read = oea_read;
|
||||
spr->oea_write = oea_write;
|
||||
#endif
|
||||
#if defined(CONFIG_KVM)
|
||||
spr->one_reg_id = one_reg_id,
|
||||
#endif
|
||||
env->spr[num] = initial_value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user