qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 09/16] scripts/decodetree: Add support for 48-bit instruct


From: Richard Henderson
Subject: Re: [PATCH v3 09/16] scripts/decodetree: Add support for 48-bit instructions
Date: Tue, 26 Nov 2024 10:27:36 -0600
User-agent: Mozilla Thunderbird

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]