一键导入
一键导入
Analyze jitc.log to find JIT compilation issues — fragment gaps, branch overflow, bad codegen
Analyze a kernel Oops from the printk buffer in a PearPC memory dump
Analyze the JIT dispatch trace to diagnose boot stalls or crashes
Compare memory regions between generic and JIT memory dumps to find divergences
Extract and display the Linux kernel printk ring buffer from a PearPC memory dump
| name | check-parity |
| description | Check that aarch64 JIT interpreter functions match generic CPU behavior |
| allowed-tools | Bash, Read, Grep |
| argument-hint | ["opcode-name"] |
Run the interpreter parity check and analyze results. If an opcode name is given, show a side-by-side diff for that specific opcode.
Always run the stub audit first — this catches no-op stubs (the #1 bug source):
python3 scripts/debug/stub_audit.py $ARGUMENTS
If an opcode name was given, this shows a side-by-side generic vs JIT diff. If no arguments, it scans all functions and reports no-op stubs.
Run ./scripts/debug/check_interpreter_parity.sh
For any issues found:
For each GEN_INTERPRET warning, check the x86 JIT (src/cpu/cpu_jitc_x86/ppc_opc.cc) to see how it handles the same opcode. The x86 JIT is the reference for how gen_ functions should work.
GEN_INTERPRET CANNOT dispatch synchronous exceptions. The only correct approaches are: