diff options
| author | Andreas Schwab <[email protected]> | 2018-07-19 11:54:59 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-07-19 16:48:14 +0200 |
| commit | 18c139b596004931c3776f94efab58ca499b0808 (patch) | |
| tree | 04cb8b1e5774159cf57b94297d9a336f83a9bf76 /backends/riscv_regs.c | |
| parent | 5ed675bc8b564893024f9f7ae5433dbbe74c80a0 (diff) | |
Fix typo in riscv_register_info
Signed-off-by: Andreas Schwab <[email protected]>
Diffstat (limited to 'backends/riscv_regs.c')
| -rw-r--r-- | backends/riscv_regs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/riscv_regs.c b/backends/riscv_regs.c index 7b577ca0..d5961ad5 100644 --- a/backends/riscv_regs.c +++ b/backends/riscv_regs.c @@ -106,7 +106,7 @@ riscv_register_info (Ebl *ebl, int regno, char *name, size_t namelen, case 26 ... 27: name[0] = 's'; name[1] = '1'; - name[1] = regno - 26 + '0'; + name[2] = regno - 26 + '0'; namelen = 3; break; |
