Closed salva-rczero closed 7 months ago
Merged!
Thank you so much @Fish-Git.
If I don't abuse your patience, I would like to ask you about two other changes that I was not sure whether to make or not:
At opcode.c "used" var is used to show "HHC02292I First use" message, but imapxx arrays are U64. This causes the var to overflow on long tests for LOAD, BCTR and other commonly used instructions and the "Fisrt use" message to appear more than once. Is it delivered or should it be changed to U64?
In my first tests I forget to add imape7 & imape7T at hstructs.h in the definition of IMAP_SIZE:
#define IMAP_SIZE \
( sizeof(sysblk.imap01) \
+ sizeof(sysblk.imapa4) \
...
Wouldn't it be cleaner to define all "imapxx" inside a sub-Struct? Or is there any reason (performance, alignment...) not to use sub-Structs?
Regards, salva.
At opcode.c "used" var is used to show "HHC02292I First use" message, but imapxx arrays are U64. This causes the var to overflow on long tests for LOAD, BCTR and other commonly used instructions and the "Fisrt use" message to appear more than once. Is it delivered or should it be changed to U64?
You mean in the "BEG_COUNT_INSTR" macro in opcode.h
? Yes. You are correct. It should be U64, and I have made the fix. Thank you!
Wouldn't it be cleaner to define all "imapxx" inside a sub-Struct? Or is there any reason (performance, alignment...) not to use sub-Structs?
I don't understand what you mean. What is a sub-struct?
Thank you @Fish-Git.
I mean a Struct inside Struct. I'll provide a tentative pull request for your consideration.
In preparation for possible changes that may become necessary for the vector facility (129) and as a practical exercise of how pulls requests work in this project, I request these changes in the behavior of icount:
1.- Counters & times tables in hstructs.h & opcode.h for E7xx instruction family.
2.- Add PRINT_INST to ouput line
3.- Change arrays to struct ICOUNT_INSTR and iterative sort to a cleanest qsort.
p.d. This is my first pull request. Please, be patient.