Skip to content
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

Metavalue cleanup #378

Merged
merged 15 commits into from
Aug 1, 2022
Merged

Metavalue cleanup #378

merged 15 commits into from
Aug 1, 2022

Conversation

mikey
Copy link
Collaborator

@mikey mikey commented Jul 14, 2022

As noted in #272, microwatt produces lots of metavalue warnings.

This patch series fixes a lot of them. Running hello for 100us now gives a lot less errors:

Master:

% ./core_tb --stop-time=100us 2> /dev/null |grep -c metavalue
63944

Now

% ./core_tb --stop-time=100us 2> /dev/null |grep -c metavalue
142

This series either propagates the X/U state or causes a fatal error in the sim.

This is ready to go except for the CI regression. This regression is caused by a bug in GHDL synth which is fixed in ghdl/ghdl#2129. We're waiting for the new GHDL docker containers to be build, then CI should pass.

@umarcor
Copy link
Contributor

umarcor commented Jul 20, 2022

@mikey, containers should be updated already. Can you please restart the CI?

@mikey mikey marked this pull request as ready for review July 21, 2022 02:27
@mikey
Copy link
Collaborator Author

mikey commented Jul 21, 2022

@umarcor Nice, seems to be working now. Thanks!

@mikey
Copy link
Collaborator Author

mikey commented Jul 26, 2022

Merged with paulus' big series in #379 and meta values reports are up from 142 to 780 (still better than 63,000), so might need a few more fixes.

mikey added 12 commits July 28, 2022 10:11
This affects other files which have been included here.

Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Michael Neuling <[email protected]>
@mikey
Copy link
Collaborator Author

mikey commented Jul 28, 2022

Rebasing on upsteam to make it easier to review after @paulusmack changes. This update also gets us down to 118 meta values warnings (from 64K)

mikey added 3 commits July 28, 2022 15:37
Signed-off-by: Michael Neuling <[email protected]>
The following commit added two tests but didn't update the tests
outputs:

    commit 73cc516
    Author: Paul Mackerras <[email protected]>
    Date:   Mon May 9 19:18:42 2022 +1000
    Use FPU for division instructions if we have an FPU

This patch updates these using tests/update_console_tests

Signed-off-by: Michael Neuling <[email protected]>
Make sure they don't increase in future

Signed-off-by: Michael Neuling <[email protected]>
@mikey
Copy link
Collaborator Author

mikey commented Jul 28, 2022

Added some tests so we don't increase metavalues over time. Also has a minor fix for the FPU test which wasn't updated to the latest code.

@paulusmack paulusmack merged commit de8fd49 into antonblanchard:master Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants