-
-
Notifications
You must be signed in to change notification settings - Fork 129
More MSAN features. #1915
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
More MSAN features. #1915
Conversation
nicolasnoble
commented
Apr 6, 2025
- DMA writes now properly flag memory as initialized.
- GDB now supports the memory region properly.
- DMA writes now properly flag memory as initialized. - GDB now supports the memory region properly.
WalkthroughThis pull request integrates memory sanitization into various DMA operations and memory handling routines throughout the codebase. It adds calls to a new Changes
Sequence Diagram(s)sequenceDiagram
participant DMA_Function as DMA Function
participant Memory_Module as Memory
participant MSAN as MSAN Sanitizer
DMA_Function ->> Memory_Module: Execute DMA transfer (read/write)
Memory_Module ->> MSAN: Call msanDmaWrite(address, size)
MSAN -->> Memory_Module: Update MSAN bitmap
Memory_Module -->> DMA_Function: Return control after DMA operation
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (8)
🧰 Additional context used🧬 Code Definitions (2)src/core/psxdma.cc (2)
src/core/gpu.cc (3)
🪛 GitHub Check: CodeScene Cloud Delta Analysis (main)src/core/psxmem.cc[warning] 794-826: ❌ Getting worse: Code Duplication [warning] 794-806: ❌ New issue: Deep, Nested Complexity [warning] 814-826: ❌ New issue: Deep, Nested Complexity ⏰ Context from checks skipped due to timeout of 90000ms (11)
🔇 Additional comments (12)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
src/core/psxmem.h:136
- The new msanDmaWrite function lacks dedicated tests. Consider adding tests to verify that DMA writes correctly update the MSAN initialized bitmap.
void msanDmaWrite(uint32_t addr, uint32_t size) {
src/core/psxmem.cc:794
- [nitpick] Consider using a more descriptive name for the parameter 'dest_' (e.g. 'outputBuffer') to improve code clarity.
void PCSX::Memory::MemoryAsFile::readBlock(void *dest_, size_t size, size_t ptr) {
src/core/psxmem.cc:814
- [nitpick] Consider renaming the parameter 'src_' to a more descriptive name such as 'inputBuffer' to improve clarity.
void PCSX::Memory::MemoryAsFile::writeBlock(const void *src_, size_t size, size_t ptr) {