-
Notifications
You must be signed in to change notification settings - Fork 749
Add control for the native stack check with hardware trap #1682
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
Conversation
product-mini/platforms/nuttx/wamr.mk
Outdated
| CFLAGS += -DWASM_DISABLE_STACK_HW_BOUND_CHECK=1 | ||
| else | ||
| CFLAGS += -DWASM_DISABLE_HW_BOUND_CHECK=0 | ||
| ifeq ($(CONFIG_INTERPRETERS_WAMR_DISABLE_STACK_HW_BOUND_CHECK),y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No such option in NuttX now,we can disable it if CONFIG_INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK disabled.
BTW, even CONFIG_INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK exists but it doesn't works actually since most NuttX supported platform don't have MMU.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, just add CFLAGS += -DWASM_DISABLE_STACK_HW_BOUND_CHECK=0 when CONFIG_INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK is disabled.
…liance#1682) Add a new options to control the native stack hw bound check feature: - Besides the original option `cmake -DWAMR_DISABLE_HW_BOUND_CHECK=1/0`, add a new option `cmake -DWAMR_DISABLE_STACK_HW_BOUND_CHECK=1/0` - When the linear memory hw bound check is disabled, the stack hw bound check will be disabled automatically, no matter what the input option is - When the linear memory hw bound check is enabled, the stack hw bound check is enabled/disabled according to the value of input option - Besides the original option `--bounds-checks=1/0`, add a new option `--stack-bounds-checks=1/0` for wamrc Refer to: bytecodealliance#1677
Add a new options to control the native stack hw bound check feature: - Besides the original option `cmake -DWAMR_DISABLE_HW_BOUND_CHECK=1/0`, add a new option `cmake -DWAMR_DISABLE_STACK_HW_BOUND_CHECK=1/0` - When the linear memory hw bound check is disabled, the stack hw bound check will be disabled automatically, no matter what the input option is - When the linear memory hw bound check is enabled, the stack hw bound check is enabled/disabled according to the value of input option - Besides the original option `--bounds-checks=1/0`, add a new option `--stack-bounds-checks=1/0` for wamrc Refer to: #1677
…liance#1682) Add a new options to control the native stack hw bound check feature: - Besides the original option `cmake -DWAMR_DISABLE_HW_BOUND_CHECK=1/0`, add a new option `cmake -DWAMR_DISABLE_STACK_HW_BOUND_CHECK=1/0` - When the linear memory hw bound check is disabled, the stack hw bound check will be disabled automatically, no matter what the input option is - When the linear memory hw bound check is enabled, the stack hw bound check is enabled/disabled according to the value of input option - Besides the original option `--bounds-checks=1/0`, add a new option `--stack-bounds-checks=1/0` for wamrc Refer to: bytecodealliance#1677
Add new options to control the native stack hw bound check feature:
cmake -DWAMR_DISABLE_HW_BOUND_CHECK=1/0,add a new option
cmake -DWAMR_DISABLE_STACK_HW_BOUND_CHECK=1/0will be disabled automatically, no matter what the input option is
is enabled/disabled according to the value of input option
--bounds-checks=1/0, add a new option--stack-bounds-checks=1/0for wamrc