在 2022/10/10 23:34, Peter Maydell 写道: >> +int get_risuop(struct reginfo *ri) >> +{ >> + /* Return the risuop we have been asked to do >> + * (or -1 if this was a SIGILL for a non-risuop insn) >> + */ >> + uint32_t insn = ri->faulting_insn; >> + uint32_t op = insn & 0xf; >> + uint32_t key = insn & ~0xf; >> + uint32_t risukey = 0x000001f0; >> + return (key != risukey) ? -1 : op; >> +} > You'll probably find this needs tweaking when you rebase > on current risu git, because a recent refactor means this > function should now return a RisuOp, not an int. The changes > should be minor, though. Ok,  I will correct it  on v2. Thanks. Song Gao