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

Cleanups and enable MMU test #6

Merged
merged 0 commits into from
Oct 18, 2020
Merged

Conversation

stffrdhrn
Copy link
Member

Various whitespace and duplicate code cleanups.
Fix the Makefile so it actually tracks dependencies.

The MMU test seems completely broken

  • Make it check tlb sets and ways from the CPU not hard coded
  • Fix compiler warnings
  • Fix logic for bss/stack being in different places it assumed everything was in the start of memory

@@ -1,6 +1,7 @@
/* Test basic c functionality, and BSS section clearing. */
#include "cpu-utils.h"
#include "lib-utils.h"
//#include "cpu-utils.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented lines completely perhaps?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will. This old code is pretty messy. Once it's all working I'll do a once over cleanup.

Thanks for having a look. There is more to come for the mmu test which is still broken.

@olofk
Copy link
Member

olofk commented Oct 13, 2020

I took a quick look, and other than a couple of commented lines I couldn't find anything controversial so I trust you got this right

@stffrdhrn
Copy link
Member Author

Note, I started working on this cleanup a while back and stopped. Now I need to test traps on mor1kx as I suspect a bug is causing the debugger to fall. It may be fixed by this pr but I need a test bench to be sure.

openrisc/mor1kx#108

@stffrdhrn
Copy link
Member Author

ok I messed up merging this. Fixed it manually

@stffrdhrn stffrdhrn merged commit 3b1136a into openrisc:master Oct 18, 2020
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.

2 participants