Commit Graph

14 Commits

Author SHA1 Message Date
pancake
9bc246c5e9 Fix riscv again :( 2017-09-17 23:14:34 +02:00
pancake
ef201b6c92 Fix riscv disassembler for 2 byte buffer as input 2017-09-17 22:58:13 +02:00
SkUaTeR
1b5a746786 add more fixes to msvc build (#7468)
* add more fixes to msvc build

* more fixes
2017-05-10 22:12:49 +02:00
Wladimir J. van der Laan
10d1df6dd2 Update RiscV opcodes for disassembly (#6897)
* riscv: Update opcodes from binutils-gdb

Update to riscv opcodes from
[riscv-binutils-gdb](https://github.com/riscv/riscv-binutils-gdb/commit/08219b2)
git 08219b2.

* riscv: set no_alias=false while disassembling

I'm not sure what the rationale was for setting no_alias to true
originally. But setting it to false means that shorter and (usually)
better readable aliases for instructions will be shown:

Before               |  After
---------------------+------------
`c.jr ra`            | `ret`
`addi a5, zero, 123` | `li a5,123`
`jal zero, 0x101dc`  | `j 0x101dc`

And so on.
2017-03-04 10:18:45 +01:00
Wladimir J. van der Laan
aab2bc824c riscv: Choose first match while disassembling
The opcodes table is sorted with the preferred instructions with a
certain encoding first.
2017-02-26 23:06:32 +01:00
Wladimir J. van der Laan
78089cd34f riscv: Return actual instruction length
Support instructions of varying length.
Addresses #6849.
2017-02-26 23:06:32 +01:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
8de14dc2b6 Fix #4242 - OOB read in riscv disassembler 2016-03-07 00:21:49 +01:00
Kamil Rytarowski
0d827a2870 NetBSD: Fix warnings for array subscript has type 'char' 2016-01-22 21:36:30 +01:00
pancake
6bc091f16f Fix some covs and the is_any() macro in anal.riscv 2015-11-05 10:34:42 +01:00
pancake
f4e6c8a7df Fix static builds 2015-11-01 00:20:58 +01:00
pancake
f326094542 Fix some warnings 2015-10-31 17:22:24 +01:00
pancake
f88b35afba Fixes for asm.riscv 2015-10-30 00:06:38 +01:00
qnix
09f1ea9856 Initial RISC-V support (32,64bit disasm) 2015-10-29 23:57:22 +01:00