mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
riscv: fix the B and J type size check
This commit is contained in:
parent
93380fc377
commit
c6008fd0ab
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ offset_in_jcc_range(ptrdiff_t offset, int flags)
|
||||||
if(offset & 1)
|
if(offset & 1)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return simm12_p(offset);
|
return simm12_p(offset >> 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -271,7 +271,7 @@ offset_in_jmp_range(ptrdiff_t offset, int flags)
|
||||||
if(offset & 1)
|
if(offset & 1)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return simm20_p(offset);
|
return simm20_p(offset >> 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue