qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC PATCH v2 24/39] target/i386: introduce Ib (immediate)


From: Jan Bobek
Subject: [Qemu-devel] [RFC PATCH v2 24/39] target/i386: introduce Ib (immediate) operand
Date: Sat, 10 Aug 2019 00:12:40 -0400

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 <address@hidden>
---
 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




reply via email to

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