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

SuperscalarEventSets check width #2506

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Conversation

ingallsj
Copy link
Contributor

@ingallsj ingallsj commented Jun 6, 2020

Related issue: add the require from #2125 onto #2337

Type of change: other enhancement

Impact: no functional change

Development Phase: implementation

Release Notes
require that SuperscalarEventSets events fit within mask, same as regular EventSets

@ingallsj ingallsj requested a review from leikou01 June 6, 2020 23:35
(counter(log2Ceil(eventSets.size)-1, 0), counter >> eventSetIdBits)
require(eventSets.size <= (1 << maxEventSetIdBits))
require(eventSetIdBits > 0)
(counter(eventSetIdBits-1, 0), counter >> maxEventSetIdBits)
Copy link
Contributor

Choose a reason for hiding this comment

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

on the high level, what is the purpose of this change?
differentiate the actually eventSet and maxEventSet? and maxEventSet will be limited by the architecture?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just making the code the same for both EventSet and SuperscalarEventSet

Copy link
Contributor

@leikou01 leikou01 left a comment

Choose a reason for hiding this comment

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

looks good to me.

@ingallsj ingallsj merged commit aa43468 into master Jun 10, 2020
@ingallsj ingallsj deleted the SuperscalarEventSetsWidth branch June 10, 2020 01:33
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