-
Notifications
You must be signed in to change notification settings - Fork 99
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
Simulator fixes and support for using MacOS #334
Conversation
0bfe130
to
0aa41b8
Compare
cfe4e09
to
49f6608
Compare
1b95d88
to
3b6817f
Compare
215bbcd
to
c3056c8
Compare
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.
Simulator test gives segmentation fault on linux.
Reproduce with:
make test-sim-internal-flash-with-update
then
tools/scripts/sim-sunnyday-update.sh
I suspect two different strategies need to be used on Mac vs GNU due to the differences in mmap "hint pointer" handling.
* Added simulator support for Mac. * Fix for simulator to properly assemble wolfboot.bin + signedtestapp + update + swap. * Fixes for handling 64-bit assigned mmap virtual addresses. Added hal_flash_write and hal_flash_erase support for 64-bit address using uintptr_t. Enabled if platform is 64-bit and `FORCE_32BIT` is not defined * Fix simulator conflict with src/libwolfboot.o object in test-app. * Cleanup test-app linker flags.
@danielinux I could not reproduce. What was your .config? I've only seen a seg fault if mmap returns a 64-bit pointer and parts of the code assume 32-bit when the address gets passed around. |
…t explicit using `ARCH_64BIT` or known 64-bit architectures.
My bad, I was testing side-by-side, with the same config as |
Regression introduced in wolfSSL#334
ARCH_64BIT
and added haladdr_t for address type.