target/i386: add core of new i386 decoder
[qemu.git] / target / i386 / tcg / emit.c.inc
blobe86364ffc1154146b7c6ac0ccbfb178568a35d3f
1 /*
2  * New-style TCG opcode generator for i386 instructions
3  *
4  *  Copyright (c) 2022 Red Hat, Inc.
5  *
6  * Author: Paolo Bonzini <pbonzini@redhat.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
20  */
22 static void gen_illegal(DisasContext *s, CPUX86State *env, X86DecodedInsn *decode)
24     gen_illegal_opcode(s);
27 static void gen_load_ea(DisasContext *s, AddressParts *mem)
29     TCGv ea = gen_lea_modrm_1(s, *mem);
30     gen_lea_v_seg(s, s->aflag, ea, mem->def_seg, s->override);