On 1/29/22 01:56, Philipp Tomsich wrote:
-            if (!decode_insn16(ctx, opcode)) {
-                gen_exception_illegal(ctx);
-            }
+            if (decode_insn16(ctx, opcode))
+                return;
...
-        if (!decode_insn32(ctx, opcode32)) {
-            gen_exception_illegal(ctx);
+
+        for (size_t i = 0; i < ARRAY_SIZE(decoders); ++i) {
+            if (!decoders[i].guard_func(ctx))
+                continue;
+
+            if (decoders[i].decode_func(ctx, opcode32))
+                return;

Missing braces, per style.  Otherwise,

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to