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

Processor #7

Merged
merged 8 commits into from
Jun 27, 2018
Merged

Processor #7

merged 8 commits into from
Jun 27, 2018

Conversation

Christian-B
Copy link
Member

Adds a Processor

+ " cannot be less than or equal to zero");
}
return new Processor(processorId, MachineDefaults.CLOCK_SPEED,
MachineDefaults.DTCM_AVAILABLE, isMonitor);
Copy link
Member

Choose a reason for hiding this comment

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

These two lines above are wrong. They don't use the clockSpeed or dtcmAvailable argument.

Copy link
Member Author

Choose a reason for hiding this comment

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

hides head in shame.

*/
public static final Processor factory(int processorId, boolean isMonitor) {
if (isMonitor) {
if (NON_MONITOR[processorId] == null) {
Copy link
Member

Choose a reason for hiding this comment

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

Finding monitor processors in a non-monitor array?

Copy link
Member Author

Choose a reason for hiding this comment

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

good thing head already hidden.

@Christian-B Christian-B dismissed dkfellows’s stale review June 27, 2018 12:57

fixes silly mistakes

@dkfellows dkfellows merged commit fb31dd0 into master Jun 27, 2018
@dkfellows dkfellows deleted the processor branch June 27, 2018 13:17
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.

None yet

2 participants