openpower-isa.git
22 months agofix typo
Jacob Lifshay [Fri, 26 Aug 2022 04:07:26 +0000 (21:07 -0700)]
fix typo

22 months agoupdate comments
Luke Kenneth Casson Leighton [Fri, 26 Aug 2022 01:35:58 +0000 (02:35 +0100)]
update comments

22 months agoadd qemu-system-ppc to .gitlab-ci.yml
Jacob Lifshay [Thu, 25 Aug 2022 10:00:54 +0000 (03:00 -0700)]
add qemu-system-ppc to .gitlab-ci.yml

22 months agomark all known-broken tests so CI passes
Jacob Lifshay [Thu, 25 Aug 2022 09:34:58 +0000 (02:34 -0700)]
mark all known-broken tests so CI passes

22 months agoskip gdb tests when gdb isn't found
Jacob Lifshay [Thu, 25 Aug 2022 09:33:52 +0000 (02:33 -0700)]
skip gdb tests when gdb isn't found

22 months agoallow crtl tests to run in parallel
Jacob Lifshay [Thu, 25 Aug 2022 09:32:10 +0000 (02:32 -0700)]
allow crtl tests to run in parallel

22 months agonmigen.info is being cyber-squatted, has to be removed for now
Luke Kenneth Casson Leighton [Thu, 25 Aug 2022 09:23:40 +0000 (10:23 +0100)]
nmigen.info is being cyber-squatted, has to be removed for now

22 months agoadd XFAIL because the file improperly accesses pdecode2.e.imm_data
Jacob Lifshay [Thu, 25 Aug 2022 06:53:44 +0000 (23:53 -0700)]
add XFAIL because the file improperly accesses pdecode2.e.imm_data

22 months agoadd more generated output to .gitignore
Jacob Lifshay [Thu, 25 Aug 2022 06:52:33 +0000 (23:52 -0700)]
add more generated output to .gitignore

22 months agoadd missing assemblers to .gitlab-ci.yml
Jacob Lifshay [Thu, 25 Aug 2022 06:45:38 +0000 (23:45 -0700)]
add missing assemblers to .gitlab-ci.yml

22 months agoadd missing on_SmtExpr methods
Jacob Lifshay [Thu, 25 Aug 2022 06:44:36 +0000 (23:44 -0700)]
add missing on_SmtExpr methods

22 months agofix assembling `sv.add.`
Jacob Lifshay [Thu, 25 Aug 2022 06:09:55 +0000 (23:09 -0700)]
fix assembling `sv.add.`

22 months agoformat .../trans/svp64.py
Jacob Lifshay [Thu, 25 Aug 2022 06:02:16 +0000 (23:02 -0700)]
format .../trans/svp64.py

22 months agomake pytest ignore non-test classes, these're the last pytest collection warnings
Jacob Lifshay [Thu, 25 Aug 2022 05:36:38 +0000 (22:36 -0700)]
make pytest ignore non-test classes, these're the last pytest collection warnings

22 months agoconvert all test_caller*.py to work with pytest/unittest test discovery
Jacob Lifshay [Thu, 25 Aug 2022 05:33:51 +0000 (22:33 -0700)]
convert all test_caller*.py to work with pytest/unittest test discovery

all the removed code had no benefit because each file only tested
one *TestCase* class, the removed code was only useful for
selecting between multiple *TestCase* classes

22 months agofix deprecated imports
Jacob Lifshay [Thu, 25 Aug 2022 05:07:00 +0000 (22:07 -0700)]
fix deprecated imports

22 months agoremove last uses of soc
Jacob Lifshay [Thu, 25 Aug 2022 04:19:36 +0000 (21:19 -0700)]
remove last uses of soc

22 months agoformat test/runner.py
Jacob Lifshay [Thu, 25 Aug 2022 04:18:45 +0000 (21:18 -0700)]
format test/runner.py

22 months agochange test cases to use TestRunnerBase in order to not need soc
Jacob Lifshay [Thu, 25 Aug 2022 04:14:21 +0000 (21:14 -0700)]
change test cases to use TestRunnerBase in order to not need soc

22 months agoremove non-orthogonal ldst_shift
Luke Kenneth Casson Leighton [Wed, 24 Aug 2022 12:30:00 +0000 (13:30 +0100)]
remove non-orthogonal ldst_shift

22 months agofix annoying typo, comment-out asm_process()
Luke Kenneth Casson Leighton [Wed, 24 Aug 2022 12:29:01 +0000 (13:29 +0100)]
fix annoying typo, comment-out asm_process()

22 months agoduplicate RM CSV entries gone after re-run of sv_analysis.py
Luke Kenneth Casson Leighton [Wed, 24 Aug 2022 12:20:50 +0000 (13:20 +0100)]
duplicate RM CSV entries gone after re-run of sv_analysis.py
due to corrections in CSV files, using patterns instead of repeated binary

22 months agohmm tdi/twi are kinda valid as svp64 prefixable
Luke Kenneth Casson Leighton [Wed, 24 Aug 2022 12:16:46 +0000 (13:16 +0100)]
hmm tdi/twi are kinda valid as svp64 prefixable

22 months agoha ha very funny, sv.andi does not exist, only "sv.andi."
Luke Kenneth Casson Leighton [Wed, 24 Aug 2022 12:14:00 +0000 (13:14 +0100)]
ha ha very funny, sv.andi does not exist, only "sv.andi."
fix assumption in sv/trans/svp64.py on that one
(also correct mistaken change)

22 months agoworking on svp64 utf-8 validation -- still broken
Jacob Lifshay [Wed, 24 Aug 2022 11:36:25 +0000 (04:36 -0700)]
working on svp64 utf-8 validation -- still broken

22 months agofix translation of instructions that require Rc=True, like `sv.andi.`
Jacob Lifshay [Wed, 24 Aug 2022 11:35:10 +0000 (04:35 -0700)]
fix translation of instructions that require Rc=True, like `sv.andi.`

22 months agoadd self.subTest and src_loc_at support to TestAccumulatorBase
Jacob Lifshay [Wed, 24 Aug 2022 11:33:27 +0000 (04:33 -0700)]
add self.subTest and src_loc_at support to TestAccumulatorBase

22 months agomisc cleanup
Jacob Lifshay [Wed, 24 Aug 2022 11:31:43 +0000 (04:31 -0700)]
misc cleanup

22 months agofinished writing svp64 utf-8 validation algorithm -- still buggy
Jacob Lifshay [Wed, 24 Aug 2022 05:14:25 +0000 (22:14 -0700)]
finished writing svp64 utf-8 validation algorithm -- still buggy

22 months agoadd WIP svp64 utf-8 validation algorithm
Jacob Lifshay [Tue, 23 Aug 2022 09:19:19 +0000 (02:19 -0700)]
add WIP svp64 utf-8 validation algorithm

22 months agouse bitpattern in minor_30.csv to give a single match for
Luke Kenneth Casson Leighton [Thu, 18 Aug 2022 00:00:12 +0000 (01:00 +0100)]
use bitpattern in minor_30.csv to give a single match for
rldic and others.  two lines were being used 0000 and 0001,
replaced with 000-

22 months agosv_binutils: support functions
Dmitry Selyutin [Wed, 17 Aug 2022 19:15:24 +0000 (22:15 +0300)]
sv_binutils: support functions

22 months agopower_insn: support function property
Dmitry Selyutin [Wed, 17 Aug 2022 19:13:11 +0000 (22:13 +0300)]
power_insn: support function property

22 months agopower_insn: fix sv_extra algorithm
Dmitry Selyutin [Wed, 17 Aug 2022 18:43:58 +0000 (21:43 +0300)]
power_insn: fix sv_extra algorithm

22 months agopower_enums: fix conversion from selector to reg
Dmitry Selyutin [Wed, 17 Aug 2022 18:43:37 +0000 (21:43 +0300)]
power_enums: fix conversion from selector to reg

22 months agoagain part of the removal of LD/ST-with-shift, take out
Luke Kenneth Casson Leighton [Wed, 17 Aug 2022 16:18:09 +0000 (17:18 +0100)]
again part of the removal of LD/ST-with-shift, take out
the early detection of a LD/ST operation that was formerly needed
for the SVP64.RM decoding to use a completely different 32-bit encoding.
we established with the whole LD/ST-with-shift experiment that this
was a really, really bad idea

22 months agopysvp64dis: rename the script due to name conflicts
Dmitry Selyutin [Tue, 16 Aug 2022 14:00:22 +0000 (17:00 +0300)]
pysvp64dis: rename the script due to name conflicts

22 months agopysvp64dis: switch to SelectableInt class
Dmitry Selyutin [Mon, 15 Aug 2022 20:02:56 +0000 (23:02 +0300)]
pysvp64dis: switch to SelectableInt class

22 months agopysvp64dis: introduce disassembler script
Dmitry Selyutin [Mon, 15 Aug 2022 19:30:32 +0000 (22:30 +0300)]
pysvp64dis: introduce disassembler script

22 months agocodeshuffle
Luke Kenneth Casson Leighton [Mon, 15 Aug 2022 18:30:18 +0000 (19:30 +0100)]
codeshuffle

22 months agoswap complicated bits, simplify ISACaller, reduce indent level
Luke Kenneth Casson Leighton [Mon, 15 Aug 2022 18:27:00 +0000 (19:27 +0100)]
swap complicated bits, simplify ISACaller, reduce indent level

22 months agodebug print for ISACaller pack/unpack
Luke Kenneth Casson Leighton [Mon, 15 Aug 2022 18:21:57 +0000 (19:21 +0100)]
debug print for ISACaller pack/unpack

22 months agoextract pack/unpack as separate bits, and also do elwidth extraction
Luke Kenneth Casson Leighton [Mon, 15 Aug 2022 16:38:13 +0000 (17:38 +0100)]
extract pack/unpack as separate bits, and also do elwidth extraction
at the same time.  reason: pack/unpack is shared with elwidth_src

22 months agoadd rest of missing stuff for cached-property git dependency
Jacob Lifshay [Sun, 14 Aug 2022 22:31:45 +0000 (15:31 -0700)]
add rest of missing stuff for cached-property git dependency

22 months agodang missed *another* argument in ISACaller on the function-morphing
Luke Kenneth Casson Leighton [Sun, 14 Aug 2022 21:36:50 +0000 (22:36 +0100)]
dang missed *another* argument in ISACaller on the function-morphing

22 months agosv_binutils: consider only SVP64 instructions
Dmitry Selyutin [Sat, 13 Aug 2022 19:06:26 +0000 (22:06 +0300)]
sv_binutils: consider only SVP64 instructions

22 months agosv_binutils: do not generate svp64_opindex_rm_field
Dmitry Selyutin [Sat, 13 Aug 2022 18:11:13 +0000 (21:11 +0300)]
sv_binutils: do not generate svp64_opindex_rm_field

22 months agosv_binutils: support opcodes
Dmitry Selyutin [Fri, 12 Aug 2022 13:32:32 +0000 (16:32 +0300)]
sv_binutils: support opcodes

22 months agosv_binutils: migrate to instructions db
Dmitry Selyutin [Fri, 12 Aug 2022 12:17:10 +0000 (15:17 +0300)]
sv_binutils: migrate to instructions db

22 months agopower_insn.py: introduce instruction database
Dmitry Selyutin [Thu, 4 Aug 2022 21:02:11 +0000 (00:02 +0300)]
power_insn.py: introduce instruction database

22 months agoisatables: introduce instruction database CSV
Dmitry Selyutin [Thu, 4 Aug 2022 20:52:30 +0000 (23:52 +0300)]
isatables: introduce instruction database CSV

22 months agopower_enums: map in/out to extra
Dmitry Selyutin [Thu, 4 Aug 2022 20:06:45 +0000 (23:06 +0300)]
power_enums: map in/out to extra

22 months agopower_enums: introduce SVMode enum
Dmitry Selyutin [Tue, 2 Aug 2022 19:27:39 +0000 (22:27 +0300)]
power_enums: introduce SVMode enum

22 months agopower_enums: introduce SVExtraReg enum
Dmitry Selyutin [Tue, 2 Aug 2022 18:27:42 +0000 (21:27 +0300)]
power_enums: introduce SVExtraReg enum

22 months agopower_enums: introduce SVExtraRegType enum
Dmitry Selyutin [Tue, 2 Aug 2022 18:22:27 +0000 (21:22 +0300)]
power_enums: introduce SVExtraRegType enum

22 months agopower_enums: introduce SVExtra alias
Dmitry Selyutin [Tue, 2 Aug 2022 18:23:07 +0000 (21:23 +0300)]
power_enums: introduce SVExtra alias

22 months agopower_enums: introduce RegType enum
Dmitry Selyutin [Tue, 2 Aug 2022 17:27:34 +0000 (20:27 +0300)]
power_enums: introduce RegType enum

22 months agopower_enums: allow SVPtype aliases
Dmitry Selyutin [Tue, 2 Aug 2022 12:50:07 +0000 (15:50 +0300)]
power_enums: allow SVPtype aliases

22 months agopower_enums: better repr for Function enum
Dmitry Selyutin [Tue, 2 Aug 2022 11:16:26 +0000 (14:16 +0300)]
power_enums: better repr for Function enum

22 months agopower_enums: introduce LDSTLen alias class
Dmitry Selyutin [Tue, 2 Aug 2022 11:07:20 +0000 (14:07 +0300)]
power_enums: introduce LDSTLen alias class

22 months agopower_enums: introduce base enum class
Dmitry Selyutin [Tue, 2 Aug 2022 11:06:39 +0000 (14:06 +0300)]
power_enums: introduce base enum class

22 months agosetup.py: add cached-property dependency
Dmitry Selyutin [Sat, 6 Aug 2022 09:33:41 +0000 (12:33 +0300)]
setup.py: add cached-property dependency

22 months agosv_analysis: decouple CSVs glob code
Dmitry Selyutin [Fri, 12 Aug 2022 13:16:05 +0000 (16:16 +0300)]
sv_analysis: decouple CSVs glob code

22 months agogo with separate bit for Pack/Unpack mode in SVP64RMModeDecode
Luke Kenneth Casson Leighton [Sun, 14 Aug 2022 16:46:04 +0000 (17:46 +0100)]
go with separate bit for Pack/Unpack mode in SVP64RMModeDecode

22 months agoremove LD/ST-shift mode from ISACaller
Luke Kenneth Casson Leighton [Sun, 14 Aug 2022 16:32:58 +0000 (17:32 +0100)]
remove LD/ST-shift mode from ISACaller

22 months agoadd PACK/UNPACK Mode descriptions to power_svp64_rm.py
Luke Kenneth Casson Leighton [Sun, 14 Aug 2022 16:12:26 +0000 (17:12 +0100)]
add PACK/UNPACK Mode descriptions to power_svp64_rm.py
(update comments, first) and add new PACK mode to SVP64RMMode
in poewr_enums.py

22 months agowhoops re-added accidentally-deleted CSV file
Luke Kenneth Casson Leighton [Sat, 13 Aug 2022 21:40:20 +0000 (22:40 +0100)]
whoops re-added accidentally-deleted CSV file

22 months agoremove Pack-Unpack csv files
Luke Kenneth Casson Leighton [Sat, 13 Aug 2022 21:37:20 +0000 (22:37 +0100)]
remove Pack-Unpack csv files

22 months agoremove Pack/Unpack flag entirely from sv_analysis
Luke Kenneth Casson Leighton [Sat, 13 Aug 2022 21:26:24 +0000 (22:26 +0100)]
remove Pack/Unpack flag entirely from sv_analysis

22 months agodisable pack/unpack in sv_analysis.py - going to use bits in
Luke Kenneth Casson Leighton [Sat, 13 Aug 2022 21:21:35 +0000 (22:21 +0100)]
disable pack/unpack in sv_analysis.py - going to use bits in
each mode, now.

22 months agoinvalidate grev cases, replaced by grevlut
Luke Kenneth Casson Leighton [Sat, 13 Aug 2022 17:21:04 +0000 (18:21 +0100)]
invalidate grev cases, replaced by grevlut

22 months agoremove LDSTBREV condition, used for ld-st-with-shift
Luke Kenneth Casson Leighton [Fri, 12 Aug 2022 13:14:44 +0000 (14:14 +0100)]
remove LDSTBREV condition, used for ld-st-with-shift

22 months agoremive svfixedload.mdwn. requires scalar fixed load to be
Luke Kenneth Casson Leighton [Fri, 12 Aug 2022 11:26:54 +0000 (12:26 +0100)]
remive svfixedload.mdwn. requires scalar fixed load to be
added to Power ISA 3 *scalar* instructions

22 months agoremove use of sv ld shifted, replace with els, deprecate the unit test
Luke Kenneth Casson Leighton [Fri, 12 Aug 2022 11:24:02 +0000 (12:24 +0100)]
remove use of sv ld shifted, replace with els, deprecate the unit test

22 months agoremove use of sv.lfssh, deprecate the unit test
Luke Kenneth Casson Leighton [Fri, 12 Aug 2022 11:15:44 +0000 (12:15 +0100)]
remove use of sv.lfssh, deprecate the unit test

22 months agoremove use of sv.lfssh, replace with sv.lfs/els element strided
Luke Kenneth Casson Leighton [Fri, 12 Aug 2022 11:12:16 +0000 (12:12 +0100)]
remove use of sv.lfssh, replace with sv.lfs/els element strided

22 months agoremove use of sv.lfssh, replace with sv.lfs/els element strided
Luke Kenneth Casson Leighton [Fri, 12 Aug 2022 11:08:57 +0000 (12:08 +0100)]
remove use of sv.lfssh, replace with sv.lfs/els element strided

22 months agopower_enums: add missing forms
Dmitry Selyutin [Tue, 9 Aug 2022 08:49:07 +0000 (11:49 +0300)]
power_enums: add missing forms

22 months agorestore scalar version of mp31_imdct36_float.s to keep as a reference
Luke Kenneth Casson Leighton [Mon, 8 Aug 2022 20:57:32 +0000 (21:57 +0100)]
restore scalar version of mp31_imdct36_float.s to keep as a reference

22 months agoWIP: SVP64 version
Konstantinos Margaritis [Mon, 8 Aug 2022 20:52:49 +0000 (20:52 +0000)]
WIP: SVP64 version

22 months agomove reg ptogiling out to separate function in sv_analysis
Luke Kenneth Casson Leighton [Sun, 7 Aug 2022 13:30:29 +0000 (14:30 +0100)]
move reg ptogiling out to separate function in sv_analysis

22 months agomove extra classification to separate function in sv_analysis
Luke Kenneth Casson Leighton [Sun, 7 Aug 2022 13:18:51 +0000 (14:18 +0100)]
move extra classification to separate function in sv_analysis

22 months agosplit cav reading into separate function
Luke Kenneth Casson Leighton [Sat, 6 Aug 2022 12:58:11 +0000 (13:58 +0100)]
split cav reading into separate function

22 months agoadd svanalysis docstrings
Luke Kenneth Casson Leighton [Sat, 6 Aug 2022 12:49:38 +0000 (13:49 +0100)]
add svanalysis docstrings

22 months agore-run svanalysis fix fishmv no TODO
Luke Kenneth Casson Leighton [Fri, 5 Aug 2022 23:58:15 +0000 (00:58 +0100)]
re-run svanalysis fix fishmv no TODO

22 months agoRevert "comment out mfcr in sv_analysis.py for now"
Luke Kenneth Casson Leighton [Fri, 5 Aug 2022 23:56:47 +0000 (00:56 +0100)]
Revert "comment out mfcr in sv_analysis.py for now"

This reverts commit 241092bc55fbab8e1eb15fd6954fc6a7c4699ccf.

22 months agoadd fishmv unusual overwrite to svanalysis
Luke Kenneth Casson Leighton [Fri, 5 Aug 2022 23:56:26 +0000 (00:56 +0100)]
add fishmv unusual overwrite to svanalysis

22 months agocomment out mfcr in sv_analysis.py for now
Luke Kenneth Casson Leighton [Fri, 5 Aug 2022 23:48:10 +0000 (00:48 +0100)]
comment out mfcr in sv_analysis.py for now

22 months agosv_binutils: drop dead code
Dmitry Selyutin [Sun, 31 Jul 2022 15:52:04 +0000 (18:52 +0300)]
sv_binutils: drop dead code

22 months agocompletely bungled multi-EXTRA specs
Luke Kenneth Casson Leighton [Wed, 3 Aug 2022 00:42:10 +0000 (01:42 +0100)]
completely bungled multi-EXTRA specs
https://bugs.libre-soc.org/show_bug.cgi?id=838#c9
should be d:RS;d:CR0, missing a semicolon. sigh

22 months agoWHOOPS. set the pack column in CSV files unconditionally to 1
Luke Kenneth Casson Leighton [Wed, 3 Aug 2022 00:38:07 +0000 (01:38 +0100)]
WHOOPS. set the pack column in CSV files unconditionally to 1
fortunately it is not used yet

22 months agowhoops should be True
Luke Kenneth Casson Leighton [Sun, 31 Jul 2022 21:19:21 +0000 (22:19 +0100)]
whoops should be True

22 months agowhoops initialise nia_update to False
Luke Kenneth Casson Leighton [Sun, 31 Jul 2022 16:02:45 +0000 (17:02 +0100)]
whoops initialise nia_update to False

23 months agosv_binutils: refactor naming conventions
Dmitry Selyutin [Sat, 30 Jul 2022 18:18:01 +0000 (21:18 +0300)]
sv_binutils: refactor naming conventions

23 months agosv_binutils: introduce svp64_opindex_rm_field routine
Dmitry Selyutin [Sat, 30 Jul 2022 12:42:10 +0000 (15:42 +0300)]
sv_binutils: introduce svp64_opindex_rm_field routine

23 months agoadd README in ISA sim directory
Luke Kenneth Casson Leighton [Sat, 30 Jul 2022 19:35:58 +0000 (20:35 +0100)]
add README in ISA sim directory

23 months agofix LDST immed using EXTRA2 not EXTRA3 in tests to make
Luke Kenneth Casson Leighton [Sat, 30 Jul 2022 17:48:53 +0000 (18:48 +0100)]
fix LDST immed using EXTRA2 not EXTRA3 in tests to make
room for Pack/Unpack

23 months agosigh begin process of fixing unit tests which are no longer EXTRA3
Luke Kenneth Casson Leighton [Sat, 30 Jul 2022 17:33:37 +0000 (18:33 +0100)]
sigh begin process of fixing unit tests which are no longer EXTRA3
on lwz.stz (immediate) makinng room for Pack/Unpack
https://bugs.libre-soc.org/show_bug.cgi?id=871

23 months agoadd LDST-2P-*PU.csv, tracked down weirdness, it was the
Luke Kenneth Casson Leighton [Sat, 30 Jul 2022 17:10:12 +0000 (18:10 +0100)]
add LDST-2P-*PU.csv, tracked down weirdness, it was the
BREV versions of LDST which need removing (not now)

23 months agoaddPack/Unpack to sv_analysis, extra CSV column.
Luke Kenneth Casson Leighton [Sat, 30 Jul 2022 16:49:09 +0000 (17:49 +0100)]
addPack/Unpack to sv_analysis, extra CSV column.
much weirdness, still investigating, lwz is still showing up in
LDST-2P-1S1D-imm which should not be happening