mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target-ppc: Altivec's mtvscr Decodes Wrong Register
The Move to Vector Status and Control Register (mtvscr) instruction uses VRB as the source register. Fix the code generator to correctly decode the VRB field. That is, use "rB(ctx->opcode)" instead of "rD(ctx->opcode)". Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
f2a64032a1
commit
76cb658419
1 changed files with 1 additions and 1 deletions
|
@ -6848,7 +6848,7 @@ static void gen_mtvscr(DisasContext *ctx)
|
|||
gen_exception(ctx, POWERPC_EXCP_VPU);
|
||||
return;
|
||||
}
|
||||
p = gen_avr_ptr(rD(ctx->opcode));
|
||||
p = gen_avr_ptr(rB(ctx->opcode));
|
||||
gen_helper_mtvscr(cpu_env, p);
|
||||
tcg_temp_free_ptr(p);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue