On 7/12/20 7:02 PM, Frank Chang wrote: > Does decodetree support any feature for multi-version opcodes? > Or if it can use something like C macros to compile with the opcodes by the > vspec > user assigned? If there's any good way to keep both versions, then I can try > to > rearrange > my codes to support both vspecs.
There is a way, using { } to indicate where overlap is allowed. The trans_* functions checks the ISA version, and return false. Which causes the next matching overlapping pattern to be used, etc. Have a look at some of the ARM decodetree files. But since Alisair is happy dropping 0.7.1 support, we should do that. It will be cleaner not to have to retain the backward compatibility. r~