Commit Graph

158 Commits

Author SHA1 Message Date
Mark Charney
6a015237c2 KMOVQ aliases to KMOVD in 32b mode. VEX.W is ignored.
Change-Id: Idcec6c04a9b32ccd539866938af3b0d1cc7b0ee9
(cherry picked from commit 334f9337fe3be3fcc28fc1ead0edb158393b4247)
2017-06-29 22:16:27 -04:00
Mark Charney
b6beda320c split CMOV and FCMOV in to their own isa sets
Change-Id: I9b24e198fe0b9fe1611b7b08e87981b6842f7436
(cherry picked from commit 86238265a5bb649ef13cdc22b66458907936520c)
2017-06-29 22:16:22 -04:00
Mark Charney
09843ea903 undo 262 2017-06-24 13:44:35 -04:00
Mark Charney
ddff2c4574 undo 252 2017-06-24 13:43:44 -04:00
Mark Charney
125018043f undo 407 2017-06-24 13:42:46 -04:00
Mark Charney
128f923904 undo 408 2017-06-24 13:41:43 -04:00
Mark Charney
05370d9872 fix 408 v to y 2017-06-24 13:40:08 -04:00
Mark Charney
d44198782c fix 407 v to y 2017-06-24 13:39:13 -04:00
Mark Charney
3e23fa5ffd fix 262 v to y 2017-06-24 13:38:04 -04:00
Mark Charney
053a642321 fix 252. v to y 2017-06-24 13:36:45 -04:00
Mark Charney
20fa8d4202 fix xed_sign_extend_arbitrary_to_64(). was using 32b literal 1 value
Change-Id: I2db789b6630d67cda56f78fdc01e645a289873fe
(cherry picked from commit af736cc24f7356def619e922a510552642dbb1c8)
2017-06-20 21:05:59 -04:00
Mark Charney
034b706750 xed-buildt.txt doc: python 27 or 34 or later...
Change-Id: I2414572b27d220506d4ecd0ee5200d32db965f3b
(cherry picked from commit 7383596c14a5cd9d1cf89e2431b3f6c640e48153)
2017-06-20 21:05:59 -04:00
Mark Charney
4a58e9fd03 travis/appveyor: using pip inside ci.py to install py2/py3 mbuild
Change-Id: I057cb212dedd7d8b22866d85de8afc025383e00a
2017-06-13 14:33:22 -04:00
Mark Charney
044d57699c appveyor python27 only for now too
Change-Id: I4bf867dd366d0fcce1e7905a8de0279662429e39
2017-06-13 13:07:35 -04:00
Mark Charney
372c5e2be3 appveyor ci.py mutiple python versions
Change-Id: I4a6a71e5baa736e9cdebecb3c8d93de8f23b63bf
2017-06-13 12:58:12 -04:00
Mark Charney
ef6ea27855 travis ci.py: fix syntax error
Change-Id: Iea0cfac685e85cdb01d4d2878055d2729a741858
2017-06-13 12:45:14 -04:00
Mark Charney
9d4ac08b16 travis ci.py: disable 3.5.2 testing while I debug travis issue
Change-Id: I53f74aed7d7f75eda936bb2a3e651f40d9ae1ae0
2017-06-13 12:40:46 -04:00
Mark Charney
c0a4b51049 travis ci.py fix for linux
Change-Id: I502ffbbdf6b9d08dd64588670adf1c68587f3059
2017-06-13 12:07:13 -04:00
Mark Charney
908f1219e1 travis: split build subdirs
Change-Id: Ieef2d110c7ebab0f50363d35ecdebeae244c8384
2017-06-13 12:02:17 -04:00
Mark Charney
c5bea9dfb3 travis: trying using multiple python versions on linux
Change-Id: I11f4fca10f5c7648cc2a605ab678789bce7200c5
2017-06-13 11:57:48 -04:00
Mark Charney
bb72495f54 Merge pull request #47 from intelxed/python3
python3
2017-06-12 16:26:42 -04:00
Mark Charney
ea2ea38f3e elf_sizes: Popen() universal_newlines and exception syntax (linux)
Change-Id: I9bd658ba6c1ec82c28cd062a9118b74d2a9dd66e
(cherry picked from commit e93dabbc58bcb2c4a93c0eac34d6c5cfc9d1195a)
2017-06-12 14:41:25 -04:00
Mark Charney
f5cc39cfe1 using is_stringish().
* bytes almost never come up except reading hash signature files.

Change-Id: I04bcfe2af016e0f29fd76cafceda72f51b9abe18
(cherry picked from commit ef74f535c2f74f30ddd7a588486253bced2a3e32)
2017-06-12 14:41:25 -04:00
Mark Charney
8fd2fe0236 gitignore: __pycache__
Change-Id: I5b3b4dc7f823e6cd3464dbfdd11dd3816366f6d5
(cherry picked from commit b998a60954994ed792662979963efc2a795a6d25)
2017-06-12 14:41:25 -04:00
Mark Charney
fd9e854be6 convert scripts dir to python2or3
Change-Id: I6188243b812050a763efed257797f9c3758706a2
(cherry picked from commit e82817687db19d4dccb10e12f95072e87d3d70e8)
2017-06-12 14:41:25 -04:00
Mark Charney
e7d734962c update legal header & date for py3 ported files
Change-Id: I166833daaa56c33eca01bdf7b9aa6e74a490ba9a
(cherry picked from commit 1212ba962dff6dfbfa0bd2469327ff447ce59058)
2017-06-12 14:41:24 -04:00
Mark Charney
9983af67b9 ctables: string/bytes confusion. genutil:funcs for idioms I keep replacing
Change-Id: Ic1bce8efd82be80b9911b62d0b932eba0a08ed08
(cherry picked from commit adb6a4f9032feef846f6e81660424963c18cf7da)
2017-06-12 14:41:24 -04:00
Mark Charney
fa988755e2 test harness run-cmd.py porting to python3. print, map, file() stuff
Change-Id: I63002d1dcd0ac141d1c8f3a9c60a9ecb1a6c9cf4
(cherry picked from commit 1dcd2207edb5075b89f0d7d55e6eb6c6cb69de3f)
2017-06-12 14:41:24 -04:00
Mark Charney
c40152ab7f chipmodel: xrange() -> range()
Change-Id: I6caeb5f75ef63ee096f2f9e668389c9794d064ef
(cherry picked from commit 322c20fb02d0dd3a531453220ec64b78b84066ec)
2017-06-12 14:41:24 -04:00
Mark Charney
0e3904c7e9 more replacing file(fn).readline with open(fn,r).readline...
Change-Id: Id703f961092b33ebc2703158b0706e87194021e3
(cherry picked from commit ae122603a801f87c53619df54827417f561cce5a)
2017-06-12 14:41:24 -04:00
Mark Charney
dd5d596267 generator: division defaults to fp. use // for integer div
Change-Id: I7fd6a2ad0c099086d77ecdf0a98f7050a923659e
(cherry picked from commit eb68da22fc92558ce481d842fe2580ac6736b585)
2017-06-12 14:41:24 -04:00
Mark Charney
0d5fd4a040 more replacing of map(str with list comprehension
Change-Id: I0b3832f5e30c35927c46d177b7b3b13692c6d306
(cherry picked from commit 34c9f848802827bf4699c06b97a732ef79875218)
2017-06-12 14:41:24 -04:00
Mark Charney
8a9d024a65 replace map(str with list comprehension
* str was a function in python2. Now a function and a type name.

   * also changed bytes to bbytes to avoid name clash with type bytes.

Change-Id: Ie1e3f67ea0a54da6e7ada381667f2c545a12388b
(cherry picked from commit 9130f13f8ec8e6ee7a1fad3d5f3c8db7a8fd863f)
2017-06-12 14:41:24 -04:00
Mark Charney
46ac41f16e nt_fun_gen: add list() to fix iterator (for encoder)
Change-Id: Iaf123f3eb37a05e50806a44311b87203c60105aa
(cherry picked from commit edc5ebde1e54b78cc32ca52fa0ba3255ea223f0d)
2017-06-12 14:41:24 -04:00
Mark Charney
86be3daeb1 read-encfile: fix bad str vs bytes changes from 2to3
Change-Id: I7db27f90c43381d72e7617d73f7608aa2753b480
(cherry picked from commit 6d559184643e6df5da51d674f02c4e35f0fdc2ac)
2017-06-12 14:41:24 -04:00
Mark Charney
a3dd467d6c read_encfile: file->open
Change-Id: I6e9742248c3bff7cf6a206e261c578b9c8d726c6
(cherry picked from commit 8647d206a8bb2e6f5e4a72cb2d4115a062399a20)
2017-06-12 14:41:23 -04:00
Mark Charney
9bf8c93ad8 ins_emit.py: fix typo in key fn name
Change-Id: Iabfd28f74381c9123f6a1511e59148d57f0e2bcb
(cherry picked from commit 2f0f348612c6bc6827d207cdd16bf1cfe454a0a8)
2017-06-12 14:41:23 -04:00
Mark Charney
d65bf14bfe generator: bytes or str for type checking
Change-Id: I263f2d2cdae3e900ecbb39b50a771c7bb49810fd
(cherry picked from commit 9a08d1e8c7d7659af06ddad6a8524e179ffa6fba)
2017-06-12 14:41:23 -04:00
Mark Charney
090fe724f0 metaenum: file->open
Change-Id: I3bd4c90db49ca70a900137eda4675f63c592f2ac
(cherry picked from commit 0c2cd373a4a6142e29d08000446fe8f795f20d27)
2017-06-12 14:41:23 -04:00
Mark Charney
cce7707c80 sorting, remove cmp= comparison functions, using key functions.
* some required several key functions relying on stable sorting

Change-Id: Id8008db21377b7c3c3f2d4425c05e4b018e85d45
(cherry picked from commit 6833101d18a2ae1564a7d96c95ecc6918d86fa54)
2017-06-12 14:41:23 -04:00
Mark Charney
99e3abea6d 2to3 types fixer for removed types
Change-Id: I5e7941e2e316c40ac731b5cf2bfc48a6500d56e5
(cherry picked from commit abc4de852029e7a17f1bdd342814d74262449a11)
2017-06-12 14:41:23 -04:00
Mark Charney
4eccd7d1a4 2to3 dict transform
Change-Id: I06e7019fbe8d1331751c6ec091817c24c4e1b590
(cherry picked from commit 28d7094f0e2d78c3397a5edf0fbe96085732bedf)
2017-06-12 14:41:23 -04:00
Mark Charney
e8e1a25d6d latent bug missing n in \n
Change-Id: Ida1e3d2b4e9f4adf9ff399d44459cb43a16bb26f
(cherry picked from commit 41d32246408d4e26f16b2d8bc36c7a2fef830206)
2017-06-12 14:41:23 -04:00
Mark Charney
a3a015df71 filter() -> map(filter( ; lambda(x) -> lambda x, map(lambda -> list comprehension
Change-Id: Iea61822578f708a1485c528ed008340e2d44a687
(cherry picked from commit 369e1c06f7c70f743f7c2d92f336b3fe2a5ef07e)
2017-06-12 14:41:22 -04:00
Mark Charney
8416dbeab2 pysrc: print_function
Change-Id: I2091ba890a8909a7b56416a8f4e4a0e1ad10b626
(cherry picked from commit bc15a573fc5c83f425a1e60cb38a311408b7b0f0)
2017-06-12 14:41:22 -04:00
Mark Charney
f1db770b19 iteritems and sort for keys view
Change-Id: Iac977738198f7f3ce8eed8e1dfca0e6aebde3816
(cherry picked from commit e3181240ce1e8443862040ce283d919fc11b537f)
2017-06-12 14:41:22 -04:00
Mark Charney
65b846b316 py3 porting: map/lambda, print, file->open
Change-Id: I25f09ff28aec5d2a0f395f3764b0a228ca89e8f9
(cherry picked from commit d6f15f7dc916eed90a419abb13b33478b2b942de)
2017-06-12 14:41:22 -04:00
Mark Charney
43c5d8678c gen_inst_list.py: add ability to diff chip by instr names
* would like it to print out the isa-sets too at some point.

Change-Id: Ia8f005c0f5562b0eb7b7ee5159ede1fa661f257d
(cherry picked from commit 7a1490a17b34f2f24f798eda505a6b475c691f61)
2017-06-12 14:38:14 -04:00
Mark Charney
11f051d943 amdxop: fix ignore of W0 for a bunch of instr.
* Changed:
    BEXTR_XOP
    BLCFILL
    BLSFILL
    BLCS
    TZMSK
    BLCIC
    BLSIC
    T1MSKC
    BLCMSK
    BLCI

  * Did not change the LPW instr; AMD docs were not as clear for those.
  can revisit.

Change-Id: I984a683025d45e7b2b255ea207383826b77bda6f
2017-06-02 11:26:45 -04:00
Mark Charney
6a1d1cbc65 ins_emit.py clarify use of insn.map for legacy maps only
Change-Id: I5edd86f60f507cdf0dbd4f6222af66f56eb9b2ba
(cherry picked from commit a1d6ba45cbda5e693bbe2888f120822d043ad511)
2017-06-02 11:26:45 -04:00