bf7646b0c7
feat(firmware): classify privileged system-register, CSR, and port-I/O instructions ( #14422 )
...
* feat(firmware): classify privileged system-register, CSR, and port-I/O instructions
Add `inspect_procedure_hardware_instructions` (`rea inspect-procedure-hardware-instructions`)
to extract and classify architectural non-MMIO hardware instructions from
`read_function_instructions` across `arm`, `arm64`, `riscv`, `xtensa`, `mips`,
`x86`, and `x86_64`.
- Parse provider `<nativeAddress>: <assembly>` lines through the shared native
address grammar (`OBSERVED_NATIVE_ADDRESS_PATTERN` / `nativeAddressInputSchema`)
without stripping 2-hex-letter mnemonics (`dc`) or discarding address spaces
(`rom:0x1000`, `overlay%3Aspace:0x1000`).
- Normalize conditional A32/T32 system, coprocessor, barrier, wait, and trap
mnemonics (`mrcne`, `mcrgt`, `mrsne`, `msreq`, `cpsie.w`, `wfene`, `wfine`,
`sevne`, `svcne`) while preserving original disassembled mnemonics, and cover
AArch64 `dc`/`ic`/`at`/`tlbi` maintenance operations.
- Parse complete 8-bit immediate x86 port tokens (`0x00..0xff` across `0x`,
Intel `h`, `$`/`#`, and decimal syntax), keep register-selected `DX` ports as
`unresolved_register`, and separate symbolic or unparsed port tokens as
`unresolved_operand`.
- Classify zero-source RISC-V CSR set/clear pseudo-instructions (`csrsi csr, 0`,
`csrci csr, 0`, `csrs csr, zero`, `csrc csr, x0`) as `read` consistently with
their canonical `csrrs`/`csrrc`/`csrrsi`/`csrrci` encodings.
Refs #7955
* chore(firmware): refresh the hardware-instruction advertised schema summary
The shared Evidence output schema on main now advertises its string
patterns, so the summary recorded on the older base was stale.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com >
---------
Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com >
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com >
2026-12-03 16:36:28 +08:00
..
2026-12-03 12:46:27 +08:00
2026-12-01 05:45:07 +00:00
2026-12-03 13:02:04 +08:00
2026-12-03 00:19:22 +00:00
2026-12-03 16:36:28 +08:00
2026-11-24 21:26:48 +08:00
2026-11-26 10:59:33 -05:00
2026-12-02 20:20:34 +00:00
2026-12-02 21:12:42 +00:00
2026-11-30 19:18:16 +08:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-27 07:40:06 +08:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-10-13 18:23:17 +08:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-26 01:24:24 +08:00
2026-10-14 04:47:34 +08:00
2026-12-02 19:27:45 +00:00
2026-10-24 09:24:43 +00:00
2026-11-30 20:35:43 +08:00
2026-10-13 22:03:16 +08:00
2026-11-30 19:38:45 +08:00
2026-11-19 03:58:03 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-12-02 20:49:12 +00:00
2026-11-30 22:17:19 +08:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-11-25 08:28:02 -05:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-12-02 22:08:04 +00:00
2026-12-03 12:46:27 +08:00
2026-12-03 12:46:27 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-23 12:06:28 -05:00
2026-11-18 17:54:40 -05:00
2026-11-19 03:58:03 +00:00
2026-11-26 17:04:00 +00:00
2026-11-26 01:24:16 +08:00
2026-11-15 20:55:29 -05:00
2026-11-26 01:24:16 +08:00
2026-11-15 22:01:49 +08:00
2026-11-26 03:50:41 +00:00
2026-11-26 01:24:16 +08:00
2026-11-16 00:06:34 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-29 18:03:55 +00:00
2026-11-25 11:25:18 -05:00
2026-11-29 18:03:55 +00:00
2026-11-26 01:24:37 +08:00
2026-11-30 18:01:46 +08:00
2026-11-26 01:24:37 +08:00
2026-12-02 17:14:08 +00:00
2026-11-26 01:24:37 +08:00
2026-12-03 00:11:23 +00:00
2026-11-20 09:47:41 -05:00
2026-11-17 10:04:46 +00:00
2026-11-22 20:41:11 -05:00
2026-11-19 00:12:50 -05:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:39:50 +08:00
2026-11-29 18:03:55 +00:00
2026-11-18 16:06:51 -05:00
2026-11-26 01:24:43 +08:00
2026-11-19 01:55:13 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-23 02:33:17 +00:00
2026-11-15 22:01:49 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:37 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-26 01:24:37 +08:00
2026-12-02 13:39:47 +08:00
2026-11-25 11:25:18 -05:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-25 08:29:31 -05:00
2026-11-16 08:04:12 +08:00
2026-11-25 08:29:31 -05:00
2026-12-02 19:14:23 +00:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-12-02 19:25:53 +00:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-12-01 21:55:49 +00:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-12-02 19:46:26 +00:00
2026-11-15 22:01:49 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-11-20 17:58:27 -05:00
2026-11-26 03:50:41 +00:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:06:34 +08:00
2026-11-30 22:39:39 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-21 03:08:49 +00:00
2026-11-25 16:56:05 +00:00
2026-11-25 16:56:05 +00:00
2026-11-24 09:23:14 +00:00
2026-11-27 12:03:37 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-15 19:52:38 +08:00
2026-11-27 13:19:09 -05:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-28 15:46:03 +08:00
2026-11-25 16:56:05 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-27 13:01:08 -05:00
2026-11-25 11:25:18 -05:00
2026-11-24 09:23:14 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-27 01:25:26 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-19 23:29:09 -05:00
2026-11-26 01:24:43 +08:00
2026-11-27 23:23:53 -05:00
2026-11-26 19:01:13 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:16 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:16 +08:00
2026-11-20 04:35:35 +00:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-25 11:25:18 -05:00
2026-11-24 21:54:08 -05:00
2026-11-22 01:35:33 +00:00
2026-11-24 03:29:27 +00:00
2026-11-17 08:28:59 -05:00
2026-12-03 01:39:10 +00:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-12-03 00:39:23 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-12-02 20:59:57 +00:00
2026-11-30 19:18:16 +08:00
2026-11-15 21:50:00 +08:00
2026-11-30 13:33:02 +08:00
2026-11-25 08:29:31 -05:00
2026-12-02 19:27:45 +00:00
2026-11-21 09:17:40 -05:00
2026-12-02 18:22:19 +00:00
2026-11-21 22:06:51 -05:00
2026-12-02 19:27:45 +00:00
2026-10-26 14:46:23 +08:00