diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2014-01-06 16:36:40 +1100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-03-05 03:06:25 +0100 |
commit | 7a7c05d77d60f6a23705da4005e96d379fd49ddb (patch) | |
tree | 16bd29051d02d6e18a2c2ab7c48a3ea57bcb9931 /target-ppc/translate_init.c | |
parent | 363248e8c92c6331253e2a768884c69183805050 (diff) | |
download | qemu-7a7c05d77d60f6a23705da4005e96d379fd49ddb.zip qemu-7a7c05d77d60f6a23705da4005e96d379fd49ddb.tar.gz qemu-7a7c05d77d60f6a23705da4005e96d379fd49ddb.tar.bz2 |
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>
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r-- | target-ppc/translate_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index a8987d4..80f225a 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -628,6 +628,9 @@ static inline void _spr_register(CPUPPCState *env, int num, 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; } |