Message ID | 20241126140003.74871-10-philmd@linaro.org |
---|---|
State | New |
Headers | show |
Series | target/mips: Convert nanoMIPS LSA opcode to decodetree | expand |
On 11/26/24 07:59, Philippe Mathieu-Daudé wrote: > Some nanoMIPS instructions are encoded using 48-bit. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > scripts/decodetree.py | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/decodetree.py b/scripts/decodetree.py > index e8b72da3a97..88cd476d2d3 100644 > --- a/scripts/decodetree.py > +++ b/scripts/decodetree.py > @@ -1543,6 +1543,10 @@ def main(): > insntype = 'uint64_t' > insnmask = 0xffffffffffffffff > bitop_width = 64 > + elif insnwidth == 48: > + insntype = 'uint64_t' > + insnmask = 0xffffffffffff > + bitop_width = 64 > elif insnwidth != 32: > error(0, 'cannot handle insns of width', insnwidth) > elif o == '--test-for-error': Reviewed-by: Richard Henderson <richard.henderson@linaro.org> This is probably simpler than falling back to the variable-length decodetree stuff. r~
diff --git a/scripts/decodetree.py b/scripts/decodetree.py index e8b72da3a97..88cd476d2d3 100644 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -1543,6 +1543,10 @@ def main(): insntype = 'uint64_t' insnmask = 0xffffffffffffffff bitop_width = 64 + elif insnwidth == 48: + insntype = 'uint64_t' + insnmask = 0xffffffffffff + bitop_width = 64 elif insnwidth != 32: error(0, 'cannot handle insns of width', insnwidth) elif o == '--test-for-error':
Some nanoMIPS instructions are encoded using 48-bit. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- scripts/decodetree.py | 4 ++++ 1 file changed, 4 insertions(+)