Introduce the immediate-byte operand, which loads a byte from the instruction stream and passes its value as the operand.
Signed-off-by: Jan Bobek <jan.bo...@gmail.com> --- target/i386/translate.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/i386/translate.c b/target/i386/translate.c index 0da064d5fd..b8e6eaebb4 100644 --- a/target/i386/translate.c +++ b/target/i386/translate.c @@ -4697,6 +4697,14 @@ static int ck_cpuid(CPUX86State *env, DisasContext *s, int ck_cpuid_feat) insnop_finalize(opTrm)(env, s, modrm, &rm); \ } while (0)) +/* + * Immediate operand + */ +INSNOP(Ib, int8_t, \ + INSNOP_INIT_OK(*op), \ + (*op = x86_ldub_code(env, s)), \ + INSNOP_FINALIZE_INVALID) + /* * Code generators */ -- 2.20.1