Re: inline expressions for decodetree !function syntax

2021-07-15 Thread Richard Henderson
On 7/15/21 2:33 AM, Peter Maydell wrote: I have found myself wondering whether it would be a good idea for decodetree to support some minimal syntax for defining constant-modifying functions inline in the decode file, so that instead of writing %imm4_16_p1 16:4 !function=plus_1 and then hav

inline expressions for decodetree !function syntax

2021-07-15 Thread Peter Maydell
I have found myself wondering whether it would be a good idea for decodetree to support some minimal syntax for defining constant-modifying functions inline in the decode file, so that instead of writing %imm4_16_p1 16:4 !function=plus_1 and then having to define a "plus_1" function somewhere