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

Wrong site_id in notify BB #21

Open
ercoppa opened this issue Apr 6, 2023 · 1 comment
Open

Wrong site_id in notify BB #21

ercoppa opened this issue Apr 6, 2023 · 1 comment

Comments

@ercoppa
Copy link

ercoppa commented Apr 6, 2023

The current code in gen_tb_start:

TCGv_i64 block = tcg_const_i64((uint64_t)tb);

uses as site_id the address of struct TB. This address does not reflect the address of the original BB. The resulting side effect is that the bitmap built by the SymCC runtime may be wrong: the address of the TB may change across runs.

One possible fix could this one. Let me know how to improve it.

@ercoppa
Copy link
Author

ercoppa commented Apr 6, 2023

This is the same issue reported by #10. Sorry for the duplicate entry. My fix is slightly cleaner.

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

No branches or pull requests

1 participant