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

Fix address types #328

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Fix address types #328

merged 4 commits into from
Nov 26, 2024

Conversation

joelsmithTT
Copy link
Contributor

Issue

#303

Description

Using signed integer for address is wrong and can cause bugs due to sign extension since UMD represents addresses as uint64_t internally. 32 bits is unnecessarily restrictive (there are address spaces in the chips that reach beyond 0x7fffffff that I might want to configure a static window for).

List of the changes

  • Use uint64_t instead of int32_t in configure_tlb method
  • Convert sizes/constants in some header files from int32_t to uint32_t
  • Remove unnecessary std:: prefixing

Testing

CI

API Changes

This PR has API changes, but it shouldn't break anything.

@broskoTT
Copy link
Contributor

Slightly related to #281

@joelsmithTT
Copy link
Contributor Author

Slightly related to #281

I might as well fix this too.

@joelsmithTT joelsmithTT requested a review from broskoTT November 25, 2024 15:34
@joelsmithTT
Copy link
Contributor Author

This should now fix #281 - @broskoTT please take another look at your convenience.

Copy link
Contributor

@pjanevskiTT pjanevskiTT left a comment

Choose a reason for hiding this comment

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

Nice, left just one comment for general discussion

device/cluster.h Show resolved Hide resolved
@joelsmithTT joelsmithTT force-pushed the joelsmith/joelsmith/fix-address-type branch from b2bdd5c to 7cbcae5 Compare November 26, 2024 20:14
@joelsmithTT joelsmithTT merged commit 766cc54 into main Nov 26, 2024
21 of 22 checks passed
@joelsmithTT joelsmithTT deleted the joelsmith/joelsmith/fix-address-type branch November 26, 2024 21:19
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.

3 participants