Remove unnecessary abs().
parent
0abd94b50c
commit
ed9a04bde9
|
@ -478,7 +478,7 @@ riscv_addr_t riscv_program_gah(struct riscv_program *p, riscv_addr_t addr)
|
|||
|
||||
riscv_addr_t riscv_program_gal(struct riscv_program *p, riscv_addr_t addr)
|
||||
{
|
||||
return ((addr > 0) ? 1 : 0) * (abs(addr) & 0x7FF);
|
||||
return ((addr > 0) ? 1 : 0) * (addr & 0x7FF);
|
||||
}
|
||||
|
||||
int riscv_program_lah(struct riscv_program *p, enum gdb_regno d, riscv_addr_t addr)
|
||||
|
|
Loading…
Reference in New Issue