mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user