On Wed, May 14, 2025 at 07:39:27PM +1200, Michael Clark wrote: > the x86-mini library is a lightweight x86 encoder, decoder, and > disassembler that uses extensions to the Intel instruction set > metadata to encode modern VEX/EVEX instructions and legacy > instructions with a parameterized LEX (legacy extension) format. > > this patch adds the x86-tablegen.py script, the disassembler, > a print_insn_x86 implementation plus host and target cpu stubs. > > Signed-off-by: Michael Clark <mich...@anarch128.org> > --- > disas/disas-host.c | 5 + > disas/meson.build | 97 ++ > disas/x86-core.c | 2716 +++++++++++++++++++++++++++++++++++++++ > disas/x86-disas.c | 96 ++ > disas/x86.h | 1860 +++++++++++++++++++++++++++ > include/disas/dis-asm.h | 1 + > target/i386/cpu.c | 7 + > 7 files changed, 4782 insertions(+) > create mode 100644 disas/x86-core.c > create mode 100644 disas/x86-disas.c > create mode 100644 disas/x86.h >
> diff --git a/disas/x86-core.c b/disas/x86-core.c > new file mode 100644 > index 000000000000..c4f7034e3420 > --- /dev/null > +++ b/disas/x86-core.c > @@ -0,0 +1,2716 @@ > +/* > + * Copyright (c) 2024-2025 Michael Clark > + * > + * SPDX-License-Identifier: MIT Note that we expect contributions to be under GPL-2.0-or-later, unless derived from existing code that forces use of a different license, which needs to be explained in the commit message With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|