-
Notifications
You must be signed in to change notification settings - Fork 3
Accumulated simple_random improvements #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
paulusmack
wants to merge
26
commits into
antonblanchard:master
Choose a base branch
from
paulusmack:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This means we get code for driving the 16550-style UART that microwatt now has. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This adds the vector and VSX instructions currently implemented by Microwatt into the mix. The 128 doublewords of FP/VR/VSRs are added to the gprs array. Memory size is expanded to 1024 bytes. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
With this, to get the old non-interactive mode, you need to put "-o" as the first parameter, like this: ./simple_random -o file $seed $nr_insns (actually anything starting with "-" will work as the first parameter). You can do a single test with ./simple_random $seed $nr_insns or multiple tests like this: ./simple_random $seed $nr_insns $nr_tests Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
FPSCR and VSCR now participate in the final checksum, and are printed if registers=1. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This speeds up test_many output by flushing stdout in getchar_unbuffered() rather than putchar_unbuffered(). Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This avoids getting the prompt at the start of non-interactive output. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Also make all tests on argc/argv depend on __STDC_HOSTED__. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Also enable a few instructions that were disabled before: extswsli[.], cmprb, cmpeqb, setb, bpermd; and add mcrxrx and addpcis. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
sr_bisect is an expect script that connects to two Microwatt instances that are running simple_random and compares their outputs for a range of seed values. When a difference is found, it then uses a bisection search on the number of instructions to find the first instruction where the results differ. It then prints the registers from both instances and the last (up to) 10 instructions generated. The instances can be invoked by running a command (for instance, "ssh arty ./simple_random") or connecting to a serial port. There are options to set the starting seed, the number of seed values to test, and the maximum number of instructions (these default to 0, 1000 and 8000 respectively). If the simple_random instances print FP/VEC/VSX register contents, then give the '-v' flag to sr_bisect so it knows to expect them. An example invocation is: $ sr_bisect 'ssh arty ./simple_random' /dev/ttyUSB0 -s 1234 Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
By including -DVECTOR_INSNS=true on the gcc command line (or not), we can have vector/VSX instructions generated and vector/VSX registers initialized, recorded and printed (or not). Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Presumably to get more parallelism. Changes from July 2022. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main thing here is optional inclusion of vector/VSX instructions and registers.
Other useful things here include: