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

triggers: implement {mcontrol,mcontrol6}.match = {not equal,not napot,not mask low,not mask high} #1348

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YenHaoChen
Copy link
Collaborator

This PR implements {mcontrol,mcontrol6}.match = {not equal,not napot,not mask low,not mask high}.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The encoding.h does not have MCONTROL_MATCH_NOT_EQUAL, MCONTROL_MATCH_NOT_NAPOT, MCONTROL_MATCH_NOT_MASK_LOW, MCONTROL_MATCH_NOT_MASK_HIGH. Without modifying encoding.h (or without including debug_defines.h), we must hardcode the values. However, that makes this part inconsistent. Should we also hardcode the values of MATCH_EQUAL, MATCH_NAPOT, MATCH_GE, MATCH_LT, MATCH_MASK_LOW, and MATCH_MASK_HIGH?

Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the problem with including debug_defines.h? That seems easier to maintain, etc. Are there macro name conflicts?

@YenHaoChen
Copy link
Collaborator Author

@timsifive Would you share some words on this?

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