openpower-isa.git
3 years agoset PC in pypowersim
Luke Kenneth Casson Leighton [Thu, 27 May 2021 11:26:13 +0000 (12:26 +0100)]
set PC in pypowersim

3 years agopass output dump argument to shell script for audio tests
Luke Kenneth Casson Leighton [Thu, 27 May 2021 11:24:13 +0000 (12:24 +0100)]
pass output dump argument to shell script for audio tests

3 years agoget full qemu list of registers, on each cycle, saves time
Luke Kenneth Casson Leighton [Thu, 27 May 2021 11:15:19 +0000 (12:15 +0100)]
get full qemu list of registers, on each cycle, saves time

3 years agoreport log expected different qemu values rather than all of them
Luke Kenneth Casson Leighton [Thu, 27 May 2021 10:35:11 +0000 (11:35 +0100)]
report log expected different qemu values rather than all of them

3 years agowhoops inverted logic on qemu endian set
Luke Kenneth Casson Leighton [Thu, 27 May 2021 10:30:37 +0000 (11:30 +0100)]
whoops inverted logic on qemu endian set

3 years agoadd setting of qemu GPRs/FPRs in pypowersim
Luke Kenneth Casson Leighton [Thu, 27 May 2021 10:28:38 +0000 (11:28 +0100)]
add setting of qemu GPRs/FPRs in pypowersim

3 years agoslightly messy: qemu goes haywire at the last instruction.
Luke Kenneth Casson Leighton [Thu, 27 May 2021 10:20:05 +0000 (11:20 +0100)]
slightly messy: qemu goes haywire at the last instruction.
reset bigendian to sane value

3 years agooops syntax error
Luke Kenneth Casson Leighton [Thu, 27 May 2021 09:06:37 +0000 (10:06 +0100)]
oops syntax error

3 years agoadd qemu gpr/fpr set/get
Luke Kenneth Casson Leighton [Thu, 27 May 2021 09:04:50 +0000 (10:04 +0100)]
add qemu gpr/fpr set/get

3 years agocreate a register cache for qemu machine interface, very slow
Luke Kenneth Casson Leighton [Thu, 27 May 2021 08:59:53 +0000 (09:59 +0100)]
create a register cache for qemu machine interface, very slow

3 years agoget qemu operational single-step mode, use in pypowersim
Luke Kenneth Casson Leighton [Thu, 27 May 2021 08:51:05 +0000 (09:51 +0100)]
get qemu operational single-step mode, use in pypowersim

3 years agoQoL tuning
Lauri Kasanen [Wed, 26 May 2021 08:56:43 +0000 (11:56 +0300)]
QoL tuning

3 years agoMissed semicolon
Lauri Kasanen [Wed, 26 May 2021 08:50:10 +0000 (11:50 +0300)]
Missed semicolon

3 years agoDedup them via scripts
Lauri Kasanen [Wed, 26 May 2021 08:49:03 +0000 (11:49 +0300)]
Dedup them via scripts

3 years agoFill in first mp3_1 incantation
Lauri Kasanen [Wed, 26 May 2021 08:39:11 +0000 (11:39 +0300)]
Fill in first mp3_1 incantation

3 years agoFill in all mp3_0 runs, move the spr to a common file
Lauri Kasanen [Wed, 26 May 2021 08:31:41 +0000 (11:31 +0300)]
Fill in all mp3_0 runs, move the spr to a common file

3 years agoUndo log in mem dump
Lauri Kasanen [Wed, 26 May 2021 08:21:58 +0000 (11:21 +0300)]
Undo log in mem dump

3 years agoUse log in decoder/*
Lauri Kasanen [Wed, 26 May 2021 08:21:30 +0000 (11:21 +0300)]
Use log in decoder/*

3 years agoUndo log in isa/caller reg dump
Lauri Kasanen [Wed, 26 May 2021 08:14:14 +0000 (11:14 +0300)]
Undo log in isa/caller reg dump

3 years agoUse log in isa/mem
Lauri Kasanen [Wed, 26 May 2021 08:11:43 +0000 (11:11 +0300)]
Use log in isa/mem

3 years agoextracting memory for dump must be big-endian ordered
Luke Kenneth Casson Leighton [Tue, 25 May 2021 13:32:53 +0000 (14:32 +0100)]
extracting memory for dump must be big-endian ordered

3 years agoadd loading of data and output dump of samples to mp3 pypowersim example
Luke Kenneth Casson Leighton [Tue, 25 May 2021 13:09:50 +0000 (14:09 +0100)]
add loading of data and output dump of samples to mp3 pypowersim example

3 years agowhoops two options "-l", rename one "-a" for "assembly listing"
Luke Kenneth Casson Leighton [Tue, 25 May 2021 13:09:05 +0000 (14:09 +0100)]
whoops two options "-l", rename one "-a" for "assembly listing"

3 years agoallow comments in SPR / GPR / FPR files
Luke Kenneth Casson Leighton [Tue, 25 May 2021 13:02:38 +0000 (14:02 +0100)]
allow comments in SPR / GPR / FPR files

3 years agoUse log in pypowersim, add counter TODO in help
Lauri Kasanen [Tue, 25 May 2021 12:57:52 +0000 (15:57 +0300)]
Use log in pypowersim, add counter TODO in help

3 years agoSwitch to log in decoder/helpers
Lauri Kasanen [Tue, 25 May 2021 12:43:15 +0000 (15:43 +0300)]
Switch to log in decoder/helpers

3 years agoSwitch to log in isa/caller
Lauri Kasanen [Tue, 25 May 2021 12:39:49 +0000 (15:39 +0300)]
Switch to log in isa/caller

3 years agomore notes on pypowersim
Luke Kenneth Casson Leighton [Tue, 25 May 2021 10:29:16 +0000 (11:29 +0100)]
more notes on pypowersim

3 years agoadd dump-out option to pypowersim
Luke Kenneth Casson Leighton [Tue, 25 May 2021 10:21:08 +0000 (11:21 +0100)]
add dump-out option to pypowersim

3 years agoadd add setting of LR so that code jumps outside of executable range when done
Luke Kenneth Casson Leighton [Tue, 25 May 2021 09:41:12 +0000 (10:41 +0100)]
add add setting of LR so that code jumps outside of executable range when done

3 years agoquick add of pypowersim command to run the apply_window_float binary
Luke Kenneth Casson Leighton [Mon, 24 May 2021 16:37:46 +0000 (17:37 +0100)]
quick add of pypowersim command to run the apply_window_float binary

3 years agoSave initial mp3_0 regs
Lauri Kasanen [Mon, 24 May 2021 12:54:39 +0000 (15:54 +0300)]
Save initial mp3_0 regs

3 years agoSave a local copy of the calling conventions
Lauri Kasanen [Mon, 24 May 2021 12:48:56 +0000 (15:48 +0300)]
Save a local copy of the calling conventions

3 years agoadd TODO comment running simulator
Luke Kenneth Casson Leighton [Mon, 24 May 2021 10:57:49 +0000 (11:57 +0100)]
add TODO comment running simulator

3 years agoadd extra (dummy) mul operation, 0*0
Luke Kenneth Casson Leighton [Mon, 24 May 2021 10:50:27 +0000 (11:50 +0100)]
add extra (dummy) mul operation, 0*0

3 years agosigh, initialise FPRs to zeros to engage FP decode
Luke Kenneth Casson Leighton [Mon, 24 May 2021 10:48:23 +0000 (11:48 +0100)]
sigh, initialise FPRs to zeros to engage FP decode

3 years agofmuls is fine
Luke Kenneth Casson Leighton [Mon, 24 May 2021 10:12:33 +0000 (11:12 +0100)]
fmuls is fine

3 years agoadd nop support to ISACaller
Luke Kenneth Casson Leighton [Mon, 24 May 2021 09:59:16 +0000 (10:59 +0100)]
add nop support to ISACaller

3 years agoSave initial mp3 C baseline asm
Lauri Kasanen [Mon, 24 May 2021 08:30:07 +0000 (11:30 +0300)]
Save initial mp3 C baseline asm

3 years agoread all lines in advance, in case of in-place overwrite
Luke Kenneth Casson Leighton [Sun, 23 May 2021 21:13:47 +0000 (22:13 +0100)]
read all lines in advance, in case of in-place overwrite

3 years agoadd svp64 assembler "processor" commandline for replacing svp64
Luke Kenneth Casson Leighton [Sun, 23 May 2021 21:06:28 +0000 (22:06 +0100)]
add svp64 assembler "processor" commandline for replacing svp64
with prefix-plus-v3.0b asm

3 years agoGive a trace name for each exception type
Cesar Strauss [Sun, 23 May 2021 18:53:51 +0000 (15:53 -0300)]
Give a trace name for each exception type

This helps to identify them in GTKWave for debugging.

3 years agoAdd new generated files to .gitignore
Cesar Strauss [Sat, 22 May 2021 21:22:44 +0000 (18:22 -0300)]
Add new generated files to .gitignore

3 years agoadd demo --load option to pypowersim
Luke Kenneth Casson Leighton [Fri, 21 May 2021 17:34:42 +0000 (18:34 +0100)]
add demo --load option to pypowersim

3 years agotest with default godbolt.org loop example, slightly modified
Luke Kenneth Casson Leighton [Fri, 21 May 2021 14:19:39 +0000 (15:19 +0100)]
test with default godbolt.org loop example, slightly modified
to run attn in order to halt

3 years agoadd GPRs to pypowersim demo
Luke Kenneth Casson Leighton [Fri, 21 May 2021 14:08:39 +0000 (15:08 +0100)]
add GPRs to pypowersim demo

3 years agoreturn register values from GPR.dump in ISACaller
Luke Kenneth Casson Leighton [Fri, 21 May 2021 13:57:11 +0000 (14:57 +0100)]
return register values from GPR.dump in ISACaller

3 years agoreturn dump of SPRs (to be used for saving, later)
Luke Kenneth Casson Leighton [Fri, 21 May 2021 13:54:45 +0000 (14:54 +0100)]
return dump of SPRs (to be used for saving, later)

3 years agoadd dump of SPRs to pypowersim
Luke Kenneth Casson Leighton [Fri, 21 May 2021 13:50:58 +0000 (14:50 +0100)]
add dump of SPRs to pypowersim

3 years agoadd testloop.s
Luke Kenneth Casson Leighton [Fri, 21 May 2021 13:39:46 +0000 (14:39 +0100)]
add testloop.s

3 years agoadd first pypowersim example
Luke Kenneth Casson Leighton [Fri, 21 May 2021 12:27:53 +0000 (13:27 +0100)]
add first pypowersim example

3 years agoadd option to run without a disassembly listing to ISACaller
Luke Kenneth Casson Leighton [Fri, 21 May 2021 12:25:34 +0000 (13:25 +0100)]
add option to run without a disassembly listing to ISACaller

3 years agoadd pypowersim to commands installed
Luke Kenneth Casson Leighton [Fri, 21 May 2021 12:10:17 +0000 (13:10 +0100)]
add pypowersim to commands installed

3 years agoadd first command-line version of ISACaller
Luke Kenneth Casson Leighton [Fri, 21 May 2021 11:58:25 +0000 (12:58 +0100)]
add first command-line version of ISACaller

3 years agoonly place underscore in front of index if it is a GPR or FPR
Luke Kenneth Casson Leighton [Thu, 20 May 2021 22:02:38 +0000 (23:02 +0100)]
only place underscore in front of index if it is a GPR or FPR

3 years agoswitch over to log function in SelectableInt
Luke Kenneth Casson Leighton [Wed, 19 May 2021 14:07:24 +0000 (15:07 +0100)]
switch over to log function in SelectableInt

3 years agodocument test_fp_single_ldst
Luke Kenneth Casson Leighton [Wed, 19 May 2021 14:04:25 +0000 (15:04 +0100)]
document test_fp_single_ldst

3 years agore-enable other SVP64 FP tests
Luke Kenneth Casson Leighton [Wed, 19 May 2021 13:41:44 +0000 (14:41 +0100)]
re-enable other SVP64 FP tests

3 years agocomments for SVP64 ASM LD/ST-with-update duplicate RA
Luke Kenneth Casson Leighton [Wed, 19 May 2021 13:40:36 +0000 (14:40 +0100)]
comments for SVP64 ASM LD/ST-with-update duplicate RA

3 years agoadd silent log debug option, if SILENCELOG env var is set, no debug output
Luke Kenneth Casson Leighton [Wed, 19 May 2021 13:35:02 +0000 (14:35 +0100)]
add silent log debug option, if SILENCELOG env var is set, no debug output

3 years agoresolve merge conflicts, effectively reverting "verbose" setting
Luke Kenneth Casson Leighton [Wed, 19 May 2021 13:19:11 +0000 (14:19 +0100)]
resolve merge conflicts, effectively reverting "verbose" setting
because it's critically essential at this stage

../openpower/isatables/

update SVP64 CSV tables

3 years agocorrections to stf/lf RA_OR_ZERO not in all cases
Luke Kenneth Casson Leighton [Wed, 19 May 2021 10:28:25 +0000 (11:28 +0100)]
corrections to stf/lf RA_OR_ZERO not in all cases

3 years agoStop spamming the world whenever PowerDecoder is fired up
Lauri Kasanen [Wed, 19 May 2021 10:33:48 +0000 (13:33 +0300)]
Stop spamming the world whenever PowerDecoder is fired up

3 years agorm -f
Lauri Kasanen [Wed, 19 May 2021 10:07:24 +0000 (13:07 +0300)]
rm -f

3 years agoBasic media infra
Lauri Kasanen [Wed, 19 May 2021 10:02:53 +0000 (13:02 +0300)]
Basic media infra

3 years agoadd SVP64 IEEE754 FP unit test
Luke Kenneth Casson Leighton [Tue, 18 May 2021 19:00:58 +0000 (20:00 +0100)]
add SVP64 IEEE754 FP unit test

3 years agofix SVP64 EXTRA2/3 decode for IEEE754 FP LD/ST operations
Luke Kenneth Casson Leighton [Tue, 18 May 2021 17:24:19 +0000 (18:24 +0100)]
fix SVP64 EXTRA2/3 decode for IEEE754 FP LD/ST operations

3 years agoadd beginning support for SVP64 IEEE754 FP
Luke Kenneth Casson Leighton [Tue, 18 May 2021 16:48:02 +0000 (17:48 +0100)]
add beginning support for SVP64 IEEE754 FP

3 years agoadd more totally random bpermd unit tests, just to be sure
Luke Kenneth Casson Leighton [Tue, 18 May 2021 12:22:01 +0000 (13:22 +0100)]
add more totally random bpermd unit tests, just to be sure

3 years agofinally fix bpermd pseudocode, index was being treated as signed
Luke Kenneth Casson Leighton [Tue, 18 May 2021 12:16:45 +0000 (13:16 +0100)]
finally fix bpermd pseudocode, index was being treated as signed
(index < 64) when it is unsigned (inedx <u 64)

3 years agorevert register reordering in ISACaller
Luke Kenneth Casson Leighton [Tue, 18 May 2021 11:49:45 +0000 (12:49 +0100)]
revert register reordering in ISACaller

3 years agoadd os.makedirs on pyfnwriter output path
Luke Kenneth Casson Leighton [Tue, 18 May 2021 09:06:10 +0000 (10:06 +0100)]
add os.makedirs on pyfnwriter output path

3 years agoadd python function writer, takes Appendix v3.0B pseudocode functions
Luke Kenneth Casson Leighton [Tue, 18 May 2021 08:56:48 +0000 (09:56 +0100)]
add python function writer, takes Appendix v3.0B pseudocode functions
and generates executable python

3 years agoupdate reg sort order in ISACaller
Luke Kenneth Casson Leighton [Mon, 17 May 2021 15:33:31 +0000 (16:33 +0100)]
update reg sort order in ISACaller

3 years agogrr syntax incorrect, use <- operator not =
Luke Kenneth Casson Leighton [Mon, 17 May 2021 15:05:07 +0000 (16:05 +0100)]
grr syntax incorrect, use <- operator not =

3 years agomark RN as TODO
Luke Kenneth Casson Leighton [Mon, 17 May 2021 13:15:01 +0000 (14:15 +0100)]
mark RN as TODO

3 years agomust not add to read regs unless in the authorised list
Luke Kenneth Casson Leighton [Mon, 17 May 2021 13:04:24 +0000 (14:04 +0100)]
must not add to read regs unless in the authorised list

3 years agoremove MISSING (theyre not), fix a couple of errors in pseudocode
Luke Kenneth Casson Leighton [Mon, 17 May 2021 12:57:28 +0000 (13:57 +0100)]
remove MISSING (theyre not), fix a couple of errors in pseudocode
for lmw and stmw, these are not supported but are there for spec
"completeness"

3 years agoadd new RC reg to get pywriter to build
Luke Kenneth Casson Leighton [Mon, 17 May 2021 12:41:58 +0000 (13:41 +0100)]
add new RC reg to get pywriter to build

3 years agoupdate to 0.0.3 0.0.3
Luke Kenneth Casson Leighton [Sun, 16 May 2021 16:06:53 +0000 (17:06 +0100)]
update to 0.0.3

3 years agodocument addition of pyfnwriter
Luke Kenneth Casson Leighton [Sun, 16 May 2021 16:06:01 +0000 (17:06 +0100)]
document addition of pyfnwriter

3 years agoadd NEWS update
Luke Kenneth Casson Leighton [Sun, 16 May 2021 16:04:18 +0000 (17:04 +0100)]
add NEWS update

3 years agoadd fpcvt.mdwn pseudocode which calls new auto-generated function
Luke Kenneth Casson Leighton [Sun, 16 May 2021 15:01:35 +0000 (16:01 +0100)]
add fpcvt.mdwn pseudocode which calls new auto-generated function
taken from Section A.3 for FP conversion

3 years agoadd new pyfnwriter command, converts v3.0B spec pseudocode helper functions
Luke Kenneth Casson Leighton [Sun, 16 May 2021 13:29:30 +0000 (14:29 +0100)]
add new pyfnwriter command, converts v3.0B spec pseudocode helper functions
into python

3 years agocreate compiler for general pseudo-code functions in v3.0B spec
Luke Kenneth Casson Leighton [Sun, 16 May 2021 13:24:25 +0000 (14:24 +0100)]
create compiler for general pseudo-code functions in v3.0B spec
specifically to support FP such as convert from int etc

3 years agoadd function reader for appendix and other v3.0B pseudocode
Luke Kenneth Casson Leighton [Sun, 16 May 2021 12:58:52 +0000 (13:58 +0100)]
add function reader for appendix and other v3.0B pseudocode

3 years agocomments in fp convert, fix carry out, comment out FPSCR for now
Luke Kenneth Casson Leighton [Sun, 16 May 2021 12:39:48 +0000 (13:39 +0100)]
comments in fp convert, fix carry out, comment out FPSCR for now

3 years agospelling
Luke Kenneth Casson Leighton [Sat, 15 May 2021 23:08:55 +0000 (00:08 +0100)]
spelling

3 years agomove round_float to separate file
Luke Kenneth Casson Leighton [Sat, 15 May 2021 23:08:34 +0000 (00:08 +0100)]
move round_float to separate file

3 years agoadd fpfromint.mdwn new file, to be used for FP conversion
Luke Kenneth Casson Leighton [Sat, 15 May 2021 23:06:12 +0000 (00:06 +0100)]
add fpfromint.mdwn new file, to be used for FP conversion
contains pseudocode from v3.0B spec, A.3 p782 book I

3 years agoextra debug print
Luke Kenneth Casson Leighton [Sat, 15 May 2021 19:16:45 +0000 (20:16 +0100)]
extra debug print

3 years agowhoops, FRC taken from FormX.FRB not FormA.FRC
Luke Kenneth Casson Leighton [Sat, 15 May 2021 19:16:25 +0000 (20:16 +0100)]
whoops, FRC taken from FormX.FRB not FormA.FRC

3 years agoFP mul test, correct pseudocode to use FRC
Luke Kenneth Casson Leighton [Sat, 15 May 2021 19:09:54 +0000 (20:09 +0100)]
FP mul test, correct pseudocode to use FRC

3 years agoadd minor_59.csv file, corrected, and power enums
Luke Kenneth Casson Leighton [Sat, 15 May 2021 18:54:02 +0000 (19:54 +0100)]
add minor_59.csv file, corrected, and power enums
operations fcfids, fcfidus, fsqrt etc.

3 years agoreturn result in FPXXX64 functions (whoops)
Luke Kenneth Casson Leighton [Sat, 15 May 2021 18:47:33 +0000 (19:47 +0100)]
return result in FPXXX64 functions (whoops)

3 years agowhen calling multi-arg function with regs, add to read list
Luke Kenneth Casson Leighton [Sat, 15 May 2021 18:47:17 +0000 (19:47 +0100)]
when calling multi-arg function with regs, add to read list

3 years agoissue with sub-decoders
Luke Kenneth Casson Leighton [Sat, 15 May 2021 18:31:16 +0000 (19:31 +0100)]
issue with sub-decoders
merged FP HI/LO 63 (minor_63.csv only) due to clash on pattern 63

3 years agoadd fadd/sub/mul/div to power_enums
Luke Kenneth Casson Leighton [Sat, 15 May 2021 18:09:13 +0000 (19:09 +0100)]
add fadd/sub/mul/div to power_enums

3 years agoadd FP basic arithmetic operations, pseudocode, fparith.mdwn
Luke Kenneth Casson Leighton [Sat, 15 May 2021 18:02:29 +0000 (19:02 +0100)]
add FP basic arithmetic operations, pseudocode, fparith.mdwn

3 years agocomments
Luke Kenneth Casson Leighton [Sat, 15 May 2021 17:06:15 +0000 (18:06 +0100)]
comments