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
@ -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…
Reference in New Issue
Block a user