target/hppa: Return zero for r0 from load_gpr
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a4db4a7811
commit
bc3da3cf62
@ -307,9 +307,7 @@ static void cond_free(DisasCond *cond)
|
||||
static TCGv_i64 load_gpr(DisasContext *ctx, unsigned reg)
|
||||
{
|
||||
if (reg == 0) {
|
||||
TCGv_i64 t = tcg_temp_new_i64();
|
||||
tcg_gen_movi_i64(t, 0);
|
||||
return t;
|
||||
return ctx->zero;
|
||||
} else {
|
||||
return cpu_gr[reg];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user