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
HW: Pass System to MMIO handlers. #11166
Conversation
fa93c7e
to
8a35576
Compare
|
Uuh, need some help with the ARM ASM here. |
8a35576
to
dd7b9b7
Compare
dd7b9b7
to
60470ed
Compare
60470ed
to
32ef02e
Compare
32ef02e
to
0a6fdb9
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.
Looks good to me. Just one tiny nit
| Fifo::SyncGPUForRegisterAccess(); | ||
| WriteHigh(fifo.CPReadPointer, val & WMASK_HI_RESTRICT); | ||
| })); | ||
| mmio->Register( |
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.
Kind of a pre-existing thing, but maybe extract the lambdas into const locals, so the formatting is a little nicer to read (if it can be done). If it can't be done nicely, then I wouldn't worry about it.
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.
545fee9 is the best I can come up with, is that better? It definitely formats nicer at least.
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.
Yeah, that's perfect. Thanks!
De-globalizing the MMIO handlers.
I'd like some input here on if this is a good way to do it. The only other approach I can think of would be to capture the system instance in every single complex handler, which IMO is worse, but ymmv.