← Back to Pull requests

LATX, fix: Warn when AVX translation support is disabled #574

Open
rmjskhy opened this pull request with 40 lines diff across 1 files
View on GitHub
rmjskhy rmjskhy commented on Nov 22, 2026 06:27 UTC
Author

Summary / 变更说明

When LATX is built without AVX translation support and encounters a decoded VEX vector instruction with no registered translator, it now prints a warning once per process. The warning includes the guest instruction address, the --enable-latx-avx-opt configure option, and the appropriate rebuild command (./latxbuild/build32.sh -c -a or ./latxbuild/build64.sh -c -a).

This makes the missing build option visible when diagnosing programs such as UnixBench Whetstone. The change only adds a diagnostic to the existing translation failure path.

Validation / 验证

Built and tested on LoongArch Linux with AOT disabled for the runtime checks.

  • 32-bit, AVX disabled: A VEX conversion instruction produced one warning with the 32-bit rebuild command. The SSE control completed without an AVX warning.

  • 64-bit, AVX disabled: VZEROUPPER and VSTMXCSR each produced the expected warning. A BMI instruction using a VEX prefix completed without an AVX warning. UD2 raised SIGILL without an AVX warning.

  • UnixBench Whetstone: The AVX-disabled build printed one warning before the test was stopped at the 3-second diagnostic timeout. With AVX enabled, the same guest binary completed without the warning, reported TIME|9.271, and exited with status 0.
  • The squashed commit c7a2969d7b has the same source tree as the tested revision. The full regression suite was not rerun for this diagnostic-only change.

    Checklist / 检查项

  • I have read CONTRIBUTING.md. / 我已阅读 CONTRIBUTING.md。

  • Every commit contains a DCO sign-off (git commit -s). / 每个提交都包含 DCO 签署(git commit -s)。

  • I have included relevant build or test results, or explained why they are not applicable. / 我已提供相关构建或测试结果,或说明了不适用的原因。
  • Diff: 40 lines (+40 / -0) across 1 files Reviewer: None requested Review duration: 17889m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.44)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 40 lines diff across 1 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.222
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    1 item
    "Review active on #574"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    rmjskhy rmjskhy
    Labels
    risk: low confidence: 44.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.2% · Lower = rushed or shallow review
    44.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.8% · Safe to merge
    20.8%