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

Handle case of not enough physical registers to rename micro-operations #384

Open
JosephMoore25 opened this issue Feb 5, 2024 · 0 comments
Assignees
Labels
0.9.7 Part of SimEng Release 0.9.7 bug Something isn't working

Comments

@JosephMoore25
Copy link
Contributor

Currently, if Micro-Operations are enabled and we encounter a case where the number of destination registers required to rename all micro-operations is greater than the spare physical registers set (total registers - architecture registers), then we get indefinitely stuck in a case where some microops have been commited to the reorder buffer, stopping an unwind, and the next micro-op stalls waiting for an available register which can never become available.

This can impact an unbounded set of register parameters, subject to the micro-operations specified.

A few things make this a hard problem to solve:

  • We don't easily know how many registers a split macro-op will need when it arrives at the rename unit
  • We must either split all instructions, or none
  • These instructions may be incorrectly speculated, but lead to the same issue

We must first detect when this case has been hit. One proposed solution is tallying per macro-op how many destination registers of each type are required for each uop that reaches the rename unit. If we detect this tally exceeds the spare physical registers, then we have hit this case.

Once the case has been hit, we must then raise a meaningful exception. This potentially requires some reworking such that the rename unit can raise an exception, and that we will have access to enough information (the macro op, pneumonic, and instruction address).

@JosephMoore25 JosephMoore25 added bug Something isn't working 0.9.7 Part of SimEng Release 0.9.7 labels Feb 5, 2024
@JosephMoore25 JosephMoore25 self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.7 Part of SimEng Release 0.9.7 bug Something isn't working
Projects
Status: ToDo
Development

No branches or pull requests

1 participant