mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06: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:
parent
a4db4a7811
commit
bc3da3cf62
1 changed files with 1 additions and 3 deletions
|
@ -307,9 +307,7 @@ static void cond_free(DisasCond *cond)
|
||||||
static TCGv_i64 load_gpr(DisasContext *ctx, unsigned reg)
|
static TCGv_i64 load_gpr(DisasContext *ctx, unsigned reg)
|
||||||
{
|
{
|
||||||
if (reg == 0) {
|
if (reg == 0) {
|
||||||
TCGv_i64 t = tcg_temp_new_i64();
|
return ctx->zero;
|
||||||
tcg_gen_movi_i64(t, 0);
|
|
||||||
return t;
|
|
||||||
} else {
|
} else {
|
||||||
return cpu_gr[reg];
|
return cpu_gr[reg];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue