57 Commits

Author SHA1 Message Date
angie
c42b486f6e yet another fix 2024-12-16 10:23:20 -03:00
angie
95f82f3c2a Update pypi upload action based on cibuildwheel example 2024-12-16 09:33:46 -03:00
angie
b86964fc4a Fix python releases CI again 2024-12-16 09:17:19 -03:00
angie
d4e5cf1b6d version bump 2024-12-16 08:38:28 -03:00
angie
743816a7cf Upgrade actions/download-artifact 2024-12-16 08:38:28 -03:00
angie
33cc926a13 version bump 2024-12-15 20:35:14 -03:00
angie
b0aac887d3 Second try 2024-12-15 20:27:28 -03:00
angie
7fed83f913 Add prebuilt binaries for 3.13 2024-12-15 20:21:37 -03:00
angie
59bb47d88c silly gha 2024-12-15 20:09:39 -03:00
angie
d8cfeedfb4 Fix clippy lints 2024-12-15 20:07:19 -03:00
Angie
681d73eb00 Hopefully fix some of the CI issues (?) 2024-10-13 19:25:45 -03:00
Angie
5e63140407 fix ci 2024-07-15 20:32:51 -04:00
Anghelo Carvajal
b51b62da45
ALLEGREX support (#60)
* setup ALLEGREX

* more setup

* clo

* fix

* Implement SPECIAL_RS and SPECIAL_SA instructions

* more table placeholders

* Implement bshfl instructions

* Rename to R4000Allegrex

* Implement SPECIAL instructions

* Add tests

* Remove some duplicated tests

* Implement SPECIAL3 instructions

* fix bug in test

* update

* Implement COPz

* Implement SPECIAL2 instructions

* Implement COP1

* Yeet cop3

* som tests

* bvf, bvfl, bvt, bvtl

* fix bshfl prefix

* need to implement the vfpu registers

* implement vt_7?

* R4000AllegrexVF -> R4000AllegrexVScalar

* Add test suite to compare with the sn toolchain decoding

* more vfpu test cases

* forgor this

* I can't decide how to name these registers

* Prepare tables for all register types

* Fix typo

* Implement vector scalar register operands

* Implement quad registers

* Fix tests?

* svl.q, svr.q

* Implement a bunch of vfpu0 instructions

* implement registers for `.t` and `.p` instructions

* Implement VFPU1 instructions

* bleh

* VFPU1, VFPU3 and `vcmp.`

* Fix wrong register type on some instructions

* start vfpu3

* Implement VFPU3 instructions

* start categorizing VFPU4

* Categorize VFPU5

* VFPU6 identification

* Identify VFPU7

* COP2 is weird

* organize COP2 a bit

* Add test cases for VFPU4 FMT

* VFPU4 FMT2 stuff

* VFPU4 FMT3 stuff

* VFPU5 stuff

* VFPU6 stuff

* VFPU7 stuff

* Implement COP2 instructions

* Implement vmov, vabs and vneg

* VPFU4 FMT0 FMT0 FMT0 implemented

* VFPU FMT0 FMT0 FMT2

* vnrcp, vnsin, vrexp2

* vrnds, vrndi, vrndf1, vrndf2

* Change tests a bit

* vf2h, vh2f, vsbz, vlgb

* vuc2ifs, vc2i, vus2i, vs2i, vi2uc, vi2c, vi2us, vi2s

* vsrt1, vsrt2, vbfy1, vbfy2, vocp, vsocp, vfad, vavg

* vsrt3, vsrt4, vsgn

* vmfvc and vmtvc placeholders

* vt4444, vt5551, vt5650

* vcst placeholder

* vf2in

* vf2iz

* vf2iu, vf2id, vi2f

* vcmovt, vcmovf

* vwbn.s, viim.s, vfim.s

* vpfxs, vpfxt, vpfxd, vnop, vsync, vflush

* vmmov, vmidt, vmzero, vmone

* vrot

* vmmul, vhtfm2, vtfm2, vhtfm3, vtfm3, vhtfm4, vtfm4, vmscl, vcrsp, vqmul

* Implement matrix operands

* fix matrix operands

* Fix `illegal` tests

* hack out a way to check the test cases are assemblable

* test-fixing: branches

* fix more test cases

* fix vmfvc and vmtvc

* more test fixing

* vdiv and fix operand R323

* more test fixing

* Fix matrix operands

* implement vcmp comparisons

* fix vsync2

* vsqrt and vrndf1 fixes

* Implement "constant" operand for `vcst`

* Add missing operand of vf2in, vf2iz, vf2iu, vf2id, vi2f

* Add missing vcmovt and vcmovf operands

* Add missing vwbn operand

* Tests cases for vmmul

* Fix vtfm2

* Implement "transpose matrix register"

* Add placeholders for the remaining missing operands

* Implement viim operand

* Implement vrot code operand

* placeholders for rp and wp operands

* test cases for vpfxs, vpfxt and vpfxd

* Properly implement rpx, rpy, rpz and rpw

* Properly implement wpx, wpy, wpz and wpw operands

* Implement vfim

* changelog

* readme

* some cleanup

* Restructure some tables

* more table restructure

* fix tests

* more table yeeting

* more cleanup

* more cleanup

* reanming

* moar

* fmt
2024-04-22 13:15:58 -04:00
angie
5dc63834e4 Make tests executable? 2024-04-11 11:50:09 -04:00
angie
db27edba33 Rework CI so tests run on parallel 2024-04-11 11:45:54 -04:00
angie
2189f99e11 Update cibuildwheel on GHA 2024-02-18 16:50:30 -03:00
angie
534f58cc7c clippy 2024-01-28 12:29:44 -03:00
angie
049b47b32c flag_disasmAsData 2023-11-11 13:19:56 -03:00
angie
802f953b59 Add markdown linter to CI 2023-09-22 15:54:19 -03:00
angie
a3c7c93b2d forgor one 2023-09-13 10:55:30 -03:00
angie
1cf06f293c yeet ref thingy 2023-09-13 10:51:26 -03:00
angie
5d6b5e696f Version bump 2023-06-10 10:38:33 -04:00
angie
5bc9246c05 Make Rust acknowledge the tables/ folder 2023-06-10 10:20:16 -04:00
angie
d7ee924746 Improve rust ci (this commit will fail) 2023-05-04 14:49:37 -04:00
angie
d03cfd7862 format rust generated tables 2023-05-04 14:30:55 -04:00
Angie
d392541299 fix paths in ci 2023-05-02 19:06:06 -04:00
angie
37b2ce06e2 Autogenerate pyi files 2023-04-30 17:39:05 -04:00
angie
7a9e7a5787 generate rust tables 2023-04-30 10:13:35 -04:00
angie
f61d37b4a6 Change builds for every machine to only be ran on new releases 2023-04-30 10:00:04 -04:00
angie
a2dfabea4f Some actions cleanup 2023-04-30 09:47:00 -04:00
angie
967d8ef0b3 Escape ` 2023-04-30 09:22:51 -04:00
angie
a85e339033 Add a message to the format yamls 2023-04-30 09:21:15 -04:00
angie
cdf97457ce use another action for the yamls 2023-04-30 09:14:23 -04:00
angie
37e8c24004 maybe fix action? 2023-04-30 09:08:59 -04:00
angie
9998ca9830 split format action and setup dependencies 2023-04-30 09:01:03 -04:00
angie
57f5d139d9 hopefully fix yaml 2023-04-30 08:54:20 -04:00
angie
39e081470e CI for checking format and tables 2023-04-30 08:48:47 -04:00
angie
0d18065e56 version bump 2023-04-02 14:28:12 -04:00
Angie
6a11224f2f Unit test for checking the version number matches 2023-02-23 13:50:05 -03:00
angie
1d59c857df rename ci 2022-12-20 13:01:08 -03:00
angie
14070be962 isolated python build 2022-12-20 12:58:50 -03:00
Angie
481bb2f6a5 jalr instruction check 2022-12-19 12:20:32 -03:00
Angie
6102f2cf7d Fix C files not being packaged on Rust crates 2022-12-18 19:43:40 -03:00
angie
bddd12847e Build C library in build.rs 2022-12-18 17:12:59 -03:00
Anghelo Carvajal
37f466595c
Update publish_crate.yml 2022-12-18 16:26:55 -03:00
angie
a1e2c62954 a 2022-12-18 16:25:01 -03:00
angie
1e02871bce Another try at fixing crate publishing 2022-12-18 16:22:06 -03:00
Anghelo Carvajal
fb8c1edbd7
Rust bindings (#17)
* Generate bindings for enums

* Add .gitignore Cargo didn't automatically made

* Actually build the files into the library

* `pub` in `mod` to fix warning

* instruction struct

* Instruction rust binding

* Add InstrId::ALL_MAX

* link C library to rust

* Publish crate CI

* test

* config bindings

* add getters for registers

* add names methods for register enums

* get_operand_type

* feedback from simon

* Forgot to add new file to python setup.py

* get_operands_slice

* add stuff to cargo.toml
2022-12-18 15:15:39 -03:00
angie
95dd97ebe8 whoops 2022-12-15 16:07:50 -03:00
angie
32acccf873 Try to make logic check tests 2022-12-15 16:06:48 -03:00