Add PPE42 (PowerPC Embedded) architecture support#338
Open
Manideep-Bhupalam wants to merge 1 commit into
Open
Conversation
efddbc3 to
4c51a4c
Compare
Author
|
@Wenzel @novafacing Can you please score this PR |
feat: Add PPE42 (PowerPC Embedded) architecture support
Add support for the PPE42 (PowerPC Processor Embedded 42-bit) architecture
used in IBM SBE (Self-Boot Engine) firmware and other embedded PowerPC systems.
Changes:
- Add PPE42 architecture implementation (src/arch/ppe42.rs)
* Uses rlwimi instruction for magic breakpoints
* Supports physical addressing (no MMU translation)
* Makes CpuInstructionQueryInterface and CpuInstrumentationSubscribeInterface
optional as they may not be available in all PPE42 Simics models
* Uses r10 for index selector, r3-r5 for arguments (PowerPC ABI)
- Add PPE42 harness header (harness/tsffs-gcc-ppe42.h)
* Implements magic instructions using rlwimi format
* Compatible with SBE firmware magic instruction conventions
* Supports all standard harness operations (start, stop, assert)
- Integrate PPE42 into architecture framework (src/arch/mod.rs)
* Add PPE42 to Architecture enum and all trait implementations
* Add architecture hint parsing for "ppe42", "ppc", "powerpc", "ppc32"
* Refactor detection chain to use early returns for clarity
- Update main harness header (harness/tsffs.h)
* Add PPE42 architecture detection for GCC/Clang compilers
* Include tsffs-gcc-ppe42.h for PowerPC preprocessor macros
This implementation provides the foundation for fuzzing embedded PowerPC
firmware in Simics, with optional coverage tracking to be added separately.
4c51a4c to
05a94b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Add PPE42 (PowerPC Embedded) architecture support
Add support for the PPE42 (PowerPC Processor Embedded 42-bit) architecture used in IBM SBE (Self-Boot Engine) firmware and other embedded PowerPC systems.
Changes:
Add PPE42 architecture implementation (src/arch/ppe42.rs)
Add PPE42 harness header (harness/tsffs-gcc-ppe42.h)
Integrate PPE42 into architecture framework (src/arch/mod.rs)
Update main harness header (harness/tsffs.h)
This implementation provides the foundation for fuzzing embedded PowerPC firmware in Simics, with optional coverage tracking to be added separately.