Commit graph

63 commits

Author SHA1 Message Date
pancake
e8263655be Fix more memleaks 2016-04-04 00:17:57 +02:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
jvoisin
420a5c41e0 Fix some minor compilation warnings 2015-10-15 12:36:34 +02:00
Anton Kochkov
82eed6f2a5 More standard C and TCC fixes 2015-10-06 01:29:26 +03:00
pancake
f4528faa93 Fix #3031 - Another ODR violation from @revskills 2015-08-19 18:58:48 +02:00
Anton Kochkov
8f1b98be8f Fix TMS320C55* tests 2015-04-19 03:42:19 +03:00
Anton Kochkov
1479aeca8e Fix a few Coverity issues
Fix CID 1205204
Fix CID 1171365
Fix CID 1135001
Fix CID 1134921
Fix CID 1134848
Fix CID 1134840
Fix CID 1134824
Fix CID 1267983
Fix CID 1230038
2015-04-19 03:15:29 +03:00
Álvaro Felipe Melchor
f755d54d3e Fix #2192 - lowercase tms320/c55x 2015-03-27 11:31:58 +01:00
Álvaro Felipe Melchor
02185dc0ab Fix segfault due to a double free in tms320/c55+ 2015-03-24 23:39:43 +01:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
jvoisin
b8cdd7c0f7 Even more coverifix 2015-02-11 21:51:13 +01:00
jvoisin
d6cf98d9be Make z80-cr pass more tests 2015-02-11 13:55:00 +01:00
pancake
88378dba7e Fix all warnings reported by the NDK (type-punned stuff) 2015-02-03 01:45:46 +01:00
Kamil Rytarowski
aadbd0f868 Fix GCC warnings: array subscript has type 'char'
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
condret
b43409f03b Fix CID 1243234 2014-10-04 00:06:34 +02:00
pancake
b8532a0679 Fix crash in tms320 finalization 2014-10-02 10:11:46 +02:00
Anton Kochkov
5d2a8fb603 Fix build 2014-09-23 00:47:02 +04:00
Anton Kochkov
40b7048edc Fix warnings for TMS320C55x+ 2014-09-23 00:44:32 +04:00
jvoisin
b52722a30c Fix some 55c+ coverity issues 2014-08-04 01:56:54 +02:00
jvoisin
8921277e64 Fix some coverity issues 2014-07-25 17:11:14 +02:00
Ilya V. Matveychikov
9d0bb6b0b0 tms320: trying to implement insn qualifiers for c55x 2014-07-07 00:08:02 +04:00
Ilya V. Matveychikov
e070707308 tms320: fix warning 2014-07-07 00:02:04 +04:00
Ilya V. Matveychikov
9fac99555e tms320: whitespace cleanups 2014-07-06 23:10:20 +04:00
Ilya V. Matveychikov
256a0d9642 tms320: remove [label, ] from the c55x systax 2014-06-24 01:24:44 +04:00
Ilya V. Matveychikov
e991ae4600 tms320: another fix of uu field decoding for c55x 2014-06-24 01:05:11 +04:00
Ilya V. Matveychikov
f25e1b0dfa tms320: fix c55x insn syntax in case of uu field parsing 2014-06-20 12:05:06 +04:00
Ilya V. Matveychikov
172818b1ed tms320: fix uu field decoding for c55x
Instruction table and generator script update, also.
2014-06-20 12:05:06 +04:00
Ilya V. Matveychikov
b5321048b4 tms320: avoid some decimal consts to be signed for c55x_plus 2014-06-03 02:15:36 +04:00
Ilya V. Matveychikov
390345ea95 tms320: fix YYY field decoding for c55x 2014-06-02 12:10:33 +04:00
pancake
ea0c2caa59 Add sys/ios-sdk build scripts 2014-05-17 04:41:33 +02:00
Ilya V. Matveychikov
14a6277b96 tms320: fix needless h-suffix in printf for c55x 2014-05-16 00:32:16 +04:00
Anton Kochkov
4e9eb42e54 Fix CID 1135133 2014-05-15 05:01:49 +04:00
Ilya V. Matveychikov
31caee0ab4 tms320: cleanup wrong spacing for c55x AADD insn 2014-05-13 20:24:45 +02:00
Ilya V. Matveychikov
668c485b8c tms320: fix TAx/TAy registers decoding for c55x 2014-05-13 20:24:45 +02:00
Ilya V. Matveychikov
366f3e66ee tms320: merge instruction tables for c55x 2014-05-13 20:24:45 +02:00
Ilya V. Matveychikov
36ce740818 tms320: fix src1,2 and dst1,2 fields parsing for c55x 2014-05-13 20:24:45 +02:00
Anton Kochkov
9069d8e0a9 Fix TMS320C55x+ segfaults 2014-05-10 03:01:55 +04:00
pancake
216c183b6e Remove tons of useless 'if (x) free (x)' 2014-05-09 17:40:28 +02:00
Anton Kochkov
01a7d72362 Fix CID 1134848 2014-05-09 03:49:35 +04:00
Ilya V. Matveychikov
8167a31d8a tms320: remove unicode symbols from the c55x opcode table 2014-05-08 01:42:39 +02:00
Ilya V. Matveychikov
12fd2dffbd tms320: add XACS/XACD fields parsing for the x55x
It was surprising for me that these fields are not parsed properly. Found that
by crafting test cases in radare2-regressions.

Also, opcode table for the c55x was slighly incorrect. Hope, next patch will fix
that confusion.
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
f225edde45 tms320: fix c55x opcode table
This patch fixes c55x opcode table and solves the problem with parsing of 2 or
more similar instructions that differs in some bits. Mmatching algorithm doesn't
takes into account wildcard mask length.

It leads to bad situation where first instruction match may complete successfull
but the second instruction, which in turn has more presicely mask, doesn't be
looked up:

       INSN1 with mask AAAA xxxx BBBB	(matched by wildcard mask)
       INSN2 with mask AAAA CCCC BBBB

Here the 'xxxx' is a 4-bit whildcard mask, 'AAAA', 'BBBB' and 'CCCC' is 4-bit
values.

The solution is to rebuild tables sorting items by the wildcard mask length
ascending.
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
d25b5511dc tms320: add c55x table generator script 2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
91ebf19666 tms320: fix invalid k12 field parsing for c55x (in some cases k12=k4+k8) 2014-05-07 23:43:28 +02:00
pancake
b1349f8b14 Merge branch 'master' of https://github.com/radare/radare2 2014-05-07 16:32:53 +02:00
jvoisin
a45deea1f7 Fix CID 1134593 2014-05-07 13:33:20 +02:00
Ilya V. Matveychikov
70afe92c81 tms320: fix instruction syntax (space missed) 2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
dfac2f9f0c tms320: fix error with c55x SSDD fields decoding 2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
a8bb021882 tms320: don't use hash sign with hex numbers for c55x
The only one rigth thing to do with hex numbers is to precede
such a numbers with '0x', not the '#' (beat me).
2014-05-07 02:52:04 +02:00
jvoisin
26d08c9259 Fix CID 1211167 2014-05-05 18:21:39 +02:00