aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/emulate.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r--arch/x86/kvm/emulate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 0b338849c689..14b279185392 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -263,7 +263,7 @@ struct gprefix {
263 __emulate_2op_nobyte(ctxt, _op, "w", "r", _LO32, "r", "", "r") 263 __emulate_2op_nobyte(ctxt, _op, "w", "r", _LO32, "r", "", "r")
264 264
265/* Instruction has three operands and one operand is stored in ECX register */ 265/* Instruction has three operands and one operand is stored in ECX register */
266#define __emulate_2op_cl(_op, ctxt, _suffix, _type) \ 266#define __emulate_2op_cl(ctxt, _op, _suffix, _type) \
267 do { \ 267 do { \
268 unsigned long _tmp; \ 268 unsigned long _tmp; \
269 _type _clv = (ctxt)->src2.val; \ 269 _type _clv = (ctxt)->src2.val; \
@@ -287,13 +287,13 @@ struct gprefix {
287 do { \ 287 do { \
288 switch ((ctxt)->dst.bytes) { \ 288 switch ((ctxt)->dst.bytes) { \
289 case 2: \ 289 case 2: \
290 __emulate_2op_cl(_op, ctxt, "w", u16); \ 290 __emulate_2op_cl(ctxt, _op, "w", u16); \
291 break; \ 291 break; \
292 case 4: \ 292 case 4: \
293 __emulate_2op_cl(_op, ctxt, "l", u32); \ 293 __emulate_2op_cl(ctxt, _op, "l", u32); \
294 break; \ 294 break; \
295 case 8: \ 295 case 8: \
296 ON64(__emulate_2op_cl(_op, ctxt, "q", ulong)); \ 296 ON64(__emulate_2op_cl(ctxt, _op, "q", ulong)); \
297 break; \ 297 break; \
298 } \ 298 } \
299 } while (0) 299 } while (0)