On 7/24/25 15:37, Bibo Mao wrote:
+enum { + TLBRET_MATCH = 0, + TLBRET_BADADDR = 1, + TLBRET_NOMATCH = 2, + TLBRET_INVALID = 3, + TLBRET_DIRTY = 4, + TLBRET_RI = 5, + TLBRET_XI = 6, + TLBRET_PE = 7, +};
For a follow-up patch, name this enumeration and use it instead of 'int'. It would make it self-documenting what a function is computing. r~