i386 CPU detection fails if the TSFFS SIMICS object is not named `"tsffs"`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Open src/arch/x86.rs and look at the three trace!(get_object(CLASS_NAME)?, ...) calls around lines 57-60, 97-100 and 119; compare with src/arch/x86_64.rs, which never calls get_object(CLASS_NAME)?. Replace each with a log against the cpu object (or drop the get_object call), then build and confirm i386 detection no longer depends on the SIMICS object being named tsffs. The issue notes this was found by reading, not reproduced under SIMICS, so a real run is the way to verify.
Written by the indexing model from the issue text.
Description
Where
- https://github.com/intel/tsffs/blob/ed67e1c07ffb59ca45d4cd1ab1ed50a61effb60c/src/arch/x86.rs#L57-L60
- https://github.com/intel/tsffs/blob/ed67e1c07ffb59ca45d4cd1ab1ed50a61effb60c/src/arch/x86.rs#L97-L100
- https://github.com/intel/tsffs/blob/ed67e1c07ffb59ca45d4cd1ab1ed50a61effb60c/src/arch/x86.rs#L119
Problem
X86ArchitectureOperations::new calls trace!(get_object(CLASS_NAME)?, ...) three times during CPU detection, where CLASS_NAME is "tsffs". None of the other architecture backends call get_object(CLASS_NAME)?. If the user instantiated the TSFFS class under any other SIMICS object name, get_object("tsffs")? returns Err, causing X86ArchitectureOperations::new to fail and Architecture::new to fall through to "Unsupported architecture".
Impact
i386 CPU auto-detection fails solely because of a trace! log call whenever the TSFFS object is not named literally "tsffs".
Suggested fix
Log against cpu (or remove the get_object(CLASS_NAME)? calls to match x86_64.rs).
Status
Found by reading the code at ed67e1c; not reproduced under SIMICS.
- Dominant language
- Rust
- Stars
- 337
- Forks
- 26
- Avg merge
- 5h 33m
- Merged PRs (30d)
- 30
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intel/tsffs
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
awxkee/yuvutils-rs#149 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
influxdata/influxdb#27767 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
shell-pool/shpool#463 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
oras-project/rust-oci-client-node#132 ·
Maintainers usually reply within 2 days