pietroborrello / CustomProcessingUnit

The first analysis framework for CPU microcode
Apache License 2.0
375 stars 25 forks source link

do CS_USERM exists? #2

Open zanderdk opened 1 year ago

zanderdk commented 1 year ago

https://github.com/pietroborrello/CustomProcessingUnit/blob/2d3b9df08fe6ce4d4ce53e04189c6204c0eb0381/uasm-lib/uasm.py#L645

based on the iret I belive this is CS_USERM but I could definitely be wrong.

pietroborrello commented 1 year ago

This is a nice observation. It may be! The assembler refers to the implementation of the disassembler at: https://github.com/chip-red-pill/uCodeDisasm/blob/5b2b1f12467aed16dc4a0096b2765cef014271b0/glm_ucode_disasm/glm_ucode_disasm.py#L643

To be sure it would be nice to dump the runtime value and check if they match