From: Philippe Mathieu-Daudé <[email protected]> Some nanoMIPS instructions are 48-bit wide. Accept --insnwidth=48, holding the instruction in a uint64_t.
Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- Since v3: - Reworded description --- scripts/decodetree.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index f992472b73e9..eadc3850531d 100644 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -1544,6 +1544,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': -- 2.55.0
