Commit b3261e48 authored by Mohammed Gamal's avatar Mohammed Gamal Committed by Avi Kivity
Browse files

Add realmode test for stc instruction

Signed-off-by: default avatarMohammed Gamal <>
Signed-off-by: default avatarAvi Kivity <>
parent 96b9ca1e
......@@ -462,6 +462,7 @@ void test_eflags_insn(void)
struct regs inregs = { 0 }, outregs;
MK_INSN(clc, "clc");
MK_INSN(stc, "stc");
MK_INSN(cli, "cli");
MK_INSN(sti, "sti");
MK_INSN(cld, "cld");
......@@ -475,6 +476,14 @@ void test_eflags_insn(void)
print_serial("clc test: PASS\n");
exec_in_big_real_mode(&inregs, &outregs,
insn_stc_end - insn_stc);
if (!(outregs.eflags & 1))
print_serial("stc test: FAIL\n");
print_serial("stc test: PASS\n");
exec_in_big_real_mode(&inregs, &outregs,
insn_cli_end - insn_cli);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment