mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
target/hppa: Clear upper bits in mtctl for pa1.x
Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
34a0d9eefe
commit
4c34bab0d3
1 changed files with 7 additions and 1 deletions
|
@ -2060,7 +2060,13 @@ static bool trans_mtctl(DisasContext *ctx, arg_mtctl *a)
|
|||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
nullify_over(ctx);
|
||||
reg = load_gpr(ctx, a->r);
|
||||
|
||||
if (ctx->is_pa20) {
|
||||
reg = load_gpr(ctx, a->r);
|
||||
} else {
|
||||
reg = tcg_temp_new_i64();
|
||||
tcg_gen_ext32u_i64(reg, load_gpr(ctx, a->r));
|
||||
}
|
||||
|
||||
switch (ctl) {
|
||||
case CR_IT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue