Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
linux-arm
kvm-unit-tests-ae
Commits
c6061817
Commit
c6061817
authored
Aug 22, 2010
by
Avi Kivity
Browse files
Test RET IMM instruction
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
c0b7268d
Changes
1
Hide whitespace changes
Inline
Side-by-side
x86/realmode.c
View file @
c6061817
...
...
@@ -627,6 +627,7 @@ void test_call(void)
"ret
\n\t
"
"2:
\t
"
);
MK_INSN
(
call_far1
,
"lcallw *(%ebx)
\n\t
"
);
MK_INSN
(
ret_imm
,
"sub $10, %sp; jmp 2f; 1: retw $10; 2: callw 1b"
);
exec_in_big_real_mode
(
&
inregs
,
&
outregs
,
insn_call1
,
...
...
@@ -658,6 +659,13 @@ void test_call(void)
print_serial
(
"Call far Test 1: FAIL
\n
"
);
else
print_serial
(
"Call far Test 1: PASS
\n
"
);
exec_in_big_real_mode
(
&
inregs
,
&
outregs
,
insn_ret_imm
,
insn_ret_imm_end
-
insn_ret_imm
);
if
(
!
regs_equal
(
&
inregs
,
&
outregs
,
0
))
print_serial
(
"ret imm Test 1: FAIL
\n
"
);
else
print_serial
(
"ret imm Test 1: PASS
\n
"
);
}
void
test_jcc_short
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment