Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kvm-unit-tests-ae
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linux-arm
kvm-unit-tests-ae
Commits
488b6ffb
Commit
488b6ffb
authored
11 years ago
by
Paolo Bonzini
Browse files
Options
Downloads
Patches
Plain Diff
emulator: correct format string
Signed-off-by:
Paolo Bonzini
<
pbonzini@redhat.com
>
parent
86065ca2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x86/emulator.c
+2
-2
2 additions, 2 deletions
x86/emulator.c
with
2 additions
and
2 deletions
x86/emulator.c
+
2
−
2
View file @
488b6ffb
...
...
@@ -891,14 +891,14 @@ static void test_sreg(volatile uint16_t *mem)
// check for null segment load
*
mem
=
0
;
asm
volatile
(
"mov %0, %%ss"
:
:
"m"
(
*
mem
));
report
(
"mov null, %ss"
,
read_ss
()
==
0
);
report
(
"mov null,
%
%ss"
,
read_ss
()
==
0
);
// check for exception when ss.rpl != cpl on null segment load
exceptions
=
0
;
handle_exception
(
GP_VECTOR
,
ss_bad_rpl
);
*
mem
=
3
;
asm
volatile
(
"mov %0, %%ss; ss_bad_rpl_cont:"
:
:
"m"
(
*
mem
));
report
(
"mov null, %ss (with ss.rpl != cpl)"
,
exceptions
==
1
&&
read_ss
()
==
0
);
report
(
"mov null,
%
%ss (with ss.rpl != cpl)"
,
exceptions
==
1
&&
read_ss
()
==
0
);
handle_exception
(
GP_VECTOR
,
0
);
write_ss
(
ss
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment