Skip to content

Commit 966798f

Browse files
authored
Merge pull request #1570 from iii-i/s390x-brasl-brcl
Merged, thanks!
2 parents 3112cd9 + 7de130a commit 966798f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qemu/target/s390x/translate.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ static DisasJumpType help_branch(DisasContext *s, DisasCompare *c,
12681268
bool is_imm, int imm, TCGv_i64 cdest)
12691269
{
12701270
DisasJumpType ret;
1271-
uint64_t dest = s->base.pc_next + 2 * imm;
1271+
uint64_t dest = s->base.pc_next + (int64_t)imm * 2;
12721272
TCGLabel *lab;
12731273
TCGContext *tcg_ctx = s->uc->tcg_ctx;
12741274

@@ -1606,7 +1606,7 @@ static DisasJumpType op_basi(DisasContext *s, DisasOps *o)
16061606
{
16071607
TCGContext *tcg_ctx = s->uc->tcg_ctx;
16081608
pc_to_link_info(tcg_ctx, o->out, s, s->pc_tmp);
1609-
return help_goto_direct(s, s->base.pc_next + 2 * get_field(s, i2));
1609+
return help_goto_direct(s, s->base.pc_next + (int64_t)get_field(s, i2) * 2);
16101610
}
16111611

16121612
static DisasJumpType op_bc(DisasContext *s, DisasOps *o)

0 commit comments

Comments
 (0)