summaryrefslogtreecommitdiffstats
path: root/utils/regtools
AgeCommit message (Collapse)AuthorFilesLines
2015-09-11soc_desc: new version of the desc file formatAmaury Pouly20-706/+3735
Fix qeditor to use the old soc_desc_v1. Port hwstub_shell to the new description format. Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
2015-09-11qeditor: introduce new "sexy register display"Amaury Pouly7-134/+286
Change-Id: Ib938b4be71d2c7623851dbc3c211f96105077d7d
2015-09-10qeditor: use delegate to show bit range informationAmaury Pouly2-8/+25
Change-Id: I314365c3a2cb9d230c412f24d2a8034a12c43444
2015-03-04qeditor: Add external static libraries to build dependeciesMarcin Bukat1-0/+10
The solution is a bit hacky as it simply call make in libs directory as pre-dependency. Clean doesn't touch libs. Change-Id: Ib447a48fd87cc41228944f17444474a55d393543
2015-01-23atj213x: Fix DMAC block in description fileMarcin Bukat1-49/+55
Change-Id: I4afc17b06f85d552248c0248e6b4b921ffc1e7a7
2015-01-22atj213x: fix desc file errorsMarcin Bukat1-6/+6
Catched by swiss_knife check there are some overlaping fields and invalid characters in some names. Change-Id: Ia26ffd2e29452f4ddd9f8229f78bb2a2cc325ab4
2015-01-12regtools/headergen: Make generator more flexibleMarcin Bukat1-83/+126
Change-Id: I2328ec021ed990a40257d4ce6f4fc5b3db2ba998
2014-12-15regtools/qeditor: use the new model, drop unused codeAmaury Pouly4-111/+67
Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: http://gerrit.rockbox.org/1023 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/qeditor: introduce custom table model for reg fieldsAmaury Pouly2-0/+289
This one is much more efficient than using a generic table widget. Change-Id: I3578964eead746e656f6b0a8dcec0f8442deb13d Reviewed-on: http://gerrit.rockbox.org/1022 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtoosl/qeditor: remove unused codeAmaury Pouly2-118/+0
Change-Id: I79ad3151d6a500903786b3467c271b43741f8fee Reviewed-on: http://gerrit.rockbox.org/1021 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/qeditor: fix field editor not updating the validator on changeAmaury Pouly3-4/+26
Change-Id: Ib8df47c8b7cfe0beb486e45542e3fcc9187bcc54 Reviewed-on: http://gerrit.rockbox.org/1020 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/qeditor: fix backend dump bug, be more correct on readAmaury Pouly2-4/+5
Change-Id: I581c033435f553f092b61144c4b68b05ab931dd8 Reviewed-on: http://gerrit.rockbox.org/1019 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/socdesc: update library with a field useful functionsAmaury Pouly1-1/+23
Change-Id: Ib2891fe36b0594e8554bb354a29bc8b3485de20d Reviewed-on: http://gerrit.rockbox.org/1018 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: message widget now supports IDs, useful to clear messagesAmaury Pouly4-6/+37
Change-Id: Ibe0a8909128469a71a25415761860e06fc9f1e67 Reviewed-on: http://gerrit.rockbox.org/1006 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: change setting names, they were inconsistentAmaury Pouly3-6/+6
Change-Id: I47c94520749d0cef1e602c7c62c685a8a3703258 Reviewed-on: http://gerrit.rockbox.org/1000 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: rework register dump to be more general and flexibleAmaury Pouly2-6/+25
Change-Id: I2fb7a2813c93f0804ed1ca6223625706d0dff9a5 Reviewed-on: http://gerrit.rockbox.org/998 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: introduce a new "RAM" backend, and refactor file backendAmaury Pouly2-31/+69
Change-Id: Icfbbc01b83d3592041803387e35f5aa6fb0fa813 Reviewed-on: http://gerrit.rockbox.org/997 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: display message on "Nothing" backend selectionAmaury Pouly3-4/+19
Change-Id: I071c79500f55afe0b6342cbb5a26a9fddba35d94 Reviewed-on: http://gerrit.rockbox.org/996 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: backends can now report validity statusAmaury Pouly2-0/+9
Change-Id: Iefedc9cee10a8c7457d972e5a60d151a6cb38aa8 Reviewed-on: http://gerrit.rockbox.org/995 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: introduce a message widget to display non-interactive messagesAmaury Pouly4-0/+120
Change-Id: Iad43efa1f09428389fbd09403c1ae20d2805f1c5 Reviewed-on: http://gerrit.rockbox.org/987 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: rework mainwindow tab names handlingAmaury Pouly4-7/+20
With the previous code, tab names would be ignored if tab is detached which can happen early on. Change-Id: I9eac4202850f3e79a04590a4ba1444850ec6a583 Reviewed-on: http://gerrit.rockbox.org/986 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: add copyrightAmaury Pouly19-1/+380
Change-Id: I7834bc09b21f2a2d84b1c9edbbe1188372809c63 Reviewed-on: http://gerrit.rockbox.org/983 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15Revert "regtools/qeditor: use the new model, drop unused code"Amaury Pouly4-67/+111
This reverts commit 3b3d9bf725a5b04e4cd9bc4254fbd2594b518e89. Gerrit did crap on this one.
2014-12-15regtools/qeditor: use the new model, drop unused codeAmaury Pouly4-111/+67
Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: http://gerrit.rockbox.org/1023 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-11-28qeditor: add clock analyser for ATJ213xMarcin Bukat3-16/+377
Change-Id: I5f5a3537d1ddf6b02684dd4c1dd13be862d3a918 Reviewed-on: http://gerrit.rockbox.org/1054 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2014-11-28hwstub: lua functions for atj213x/irivere150Marcin Bukat1-1/+61
Change-Id: I3ab32996b4b6603fd7d66eee5b3bfd795b79eee1 Reviewed-on: http://gerrit.rockbox.org/1049 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
2014-11-18regs-atj213x.xml upadteMarcin Bukat1-0/+144
Change-Id: Ia34dcf651e68ea66baebdeb8c056db86799ea33c
2014-11-18hwstub/qeditor: add support for atomic read/writesMarcin Bukat1-2/+2
The current code assumed that READ/WRITE would produce atomic read/writes for 8/16/32-bit words, which in turned put assumption on the memcpy function. Since some memcpy implementation do not always guarantee such strong assumption, introduce two new operation READ/WRITE_ATOMIC which provide the necessary tools to do correct read and write to register in a single memory access. Change-Id: I37451bd5057bb0dcaf5a800d8aef8791c792a090
2014-11-06regtools: ATJ213x description fileMarcin Bukat1-0/+759
Change-Id: I5b4d29e0808c57e252f5b6c3b9ba26a52c1bd112
2014-10-08regtools/socdesc: fix redAmaury Pouly1-0/+1
Change-Id: If40c52168eb5cd2d194c90c3f65263d2b9da0451
2014-09-19regtools: reg-rk27xx.xml description file rework and cleanupMarcin Bukat1-97/+381
Change-Id: I0a2e45eb1b4aa03122382cc93bbc0c292b3249be
2014-09-19qeditor: Implement clock analyzer for rk27xxMarcin Bukat3-5/+200
Change-Id: Ib8f53d32120893b6c1054299ed434a6650a0d7c2 Reviewed-on: http://gerrit.rockbox.org/971 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2014-09-19qeditor: rework modified indicator, register tab names depend on contentAmaury Pouly7-48/+129
Because Qt doesn't support QObject multiple inherance, it is a bit tricky to have a base class which interact with the UI. The register tab name now display: - file dump name (for dumps) - hwstub device path (for hwstub) And the register editor display the filename Change-Id: If2579992098c02627c67d560c824f1668e73bc45 Reviewed-on: http://gerrit.rockbox.org/979 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: implement usb device list refresh (if supported)Amaury Pouly2-0/+10
Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea Reviewed-on: http://gerrit.rockbox.org/978 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: fix UI to update register/analyser view on each tree/list clickAmaury Pouly2-19/+5
Change-Id: Idaceb7ffaf33c2184a43353dd9d7dee20ac807a9 Reviewed-on: http://gerrit.rockbox.org/972 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: fix horrible out of bound bugAmaury Pouly1-1/+1
Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: http://gerrit.rockbox.org/977 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: when switching type tab, automagically switch view, implement reloadAmaury Pouly2-0/+19
Change-Id: I7360af3b5dd7380151732687d6d8de3dbd503f20 Reviewed-on: http://gerrit.rockbox.org/976 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: avoid memory leak in RegTabAmaury Pouly1-1/+1
Change-Id: Ib7cd87b66c0ceb3d3ff93714709a43e2a97ce79a Reviewed-on: http://gerrit.rockbox.org/975 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: move backend selector to its own class, that's cleanerAmaury Pouly4-163/+196
Change-Id: I7f3fa66a8f67639b4b64cf9f6acc5fb10e227653 Reviewed-on: http://gerrit.rockbox.org/974 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: initialise libusb once in a static ctorAmaury Pouly1-5/+18
Change-Id: Ic93def2b3633c498c9863b0dada3281853be8c6c Reviewed-on: http://gerrit.rockbox.org/973 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-18regtoools: Enhance rk27xx description fileMarcin Bukat1-1928/+2416
Change-Id: If37551757188d98bcb27f7f469c11cf89bf64f62
2014-09-16regtools/soc_desc: fix libxml2 misinitAmaury Pouly1-1/+17
The code did not call xmlInitParser() and would call xmlCleanupParser() each time which is doubly wrong because 1) it's not init 2) all init/cleanup must be done from the main thread. To ensure 2), call it from a static ctor. Change-Id: I3d191bf3b8c0cfc51da78157e88c786636fd3ebf Reviewed-on: http://gerrit.rockbox.org/966 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-15rk27xx: Fill UDC block description in regs-rk27xx.xmlMarcin Bukat1-84/+740
Change-Id: Ia44169bda8f1558c1cbd4c8c0d2d3aaee262c991
2014-09-07qeditor: add soc panel, to display soc informationAmaury Pouly4-6/+92
Change-Id: Ie442b82d96fb150c7466f1a274240f9b111fd91e
2014-09-07qeditor: use hwstub library function to identify devicesAmaury Pouly1-15/+8
The new protocol is interface based, so matching PID:VID is not sufficient Change-Id: I27983a9c3b7db01b8e63b41e885f86d09c362f60
2014-06-15Rework reg description file for rk27xxMarcin Bukat1-649/+601
Change-Id: I3fc1c6c70c828dca285479eaa168328a2a8fdf2c
2014-05-25regtools: add new reg dumps from various targetsAmaury Pouly6-0/+4342
Change-Id: I289f03a8404c6aa8ec2ff94a8a0a3118fd3c7456
2014-05-12qeditor: on Windows it’s not impossible to create a file with AUXDmitry Gamza5-5/+5
Change-Id: Ic7ef01328eccbed4afddb0a09d2afbb6c1f6a28f Reviewed-on: http://gerrit.rockbox.org/811 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-05-11qeditor: many enhancementAmaury Pouly8-40/+261
Qeditor has been improved in many ways: - it can now dump all registers, just like the lua DUMPER.dump_all() command - several crash were fixed - when connected to a hwstub command, one can correctly edit individual fields - the code was simplified in several places Change-Id: I092b99ce3a12ff6417552de61d62c65f706bcff0
2014-05-11regtools: headergen can now output the description in the headersAmaury Pouly2-4/+108
This is useful to provide some documentation in the code. Change-Id: Ib440363d82c47c36fffb9567a2e7f374eaaa5cbc