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

cmd/compile: arch.MAXWIDTH on amd64 out of date? #38734

Open
mdempsky opened this issue Apr 28, 2020 · 0 comments
Open

cmd/compile: arch.MAXWIDTH on amd64 out of date? #38734

mdempsky opened this issue Apr 28, 2020 · 0 comments
Milestone

Comments

@mdempsky
Copy link
Member

@mdempsky mdempsky commented Apr 28, 2020

arch.MAXWIDTH = 1 << 50

Most amd64 implementations only support 48 bits of linear address space, but apparently Intel's Ice Lake product line launched last year and support up to 57 bits.

Theoretically fixing this should be as simple as bumping that constant up, but I'm nervous there are other constants that will need to be bumped too. E.g., probably code that uses the (*[big]T)(ptr)[:n:n] idiom might need to be tweaked.

Noticed in discussion on #37805.

/cc @ianlancetaylor

@mdempsky mdempsky added this to the Backlog milestone Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.