Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libtcg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Anton
libtcg
Commits
08aec8b5
Commit
08aec8b5
authored
7 years ago
by
Richard Henderson
Browse files
Options
Downloads
Patches
Plain Diff
target/hppa: Implement unaligned access trap
Signed-off-by:
Richard Henderson
<
richard.henderson@linaro.org
>
parent
1a19da0d
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
target/hppa/cpu.c
+18
-1
18 additions, 1 deletion
target/hppa/cpu.c
with
18 additions
and
1 deletion
target/hppa/cpu.c
+
18
−
1
View file @
08aec8b5
...
...
@@ -48,6 +48,23 @@ static void hppa_cpu_disas_set_info(CPUState *cs, disassemble_info *info)
info
->
print_insn
=
print_insn_hppa
;
}
static
void
hppa_cpu_do_unaligned_access
(
CPUState
*
cs
,
vaddr
addr
,
MMUAccessType
access_type
,
int
mmu_idx
,
uintptr_t
retaddr
)
{
HPPACPU
*
cpu
=
HPPA_CPU
(
cs
);
CPUHPPAState
*
env
=
&
cpu
->
env
;
cs
->
exception_index
=
EXCP_UNALIGN
;
if
(
env
->
psw
&
PSW_Q
)
{
/* ??? Needs tweaking for hppa64. */
env
->
cr
[
CR_IOR
]
=
addr
;
env
->
cr
[
CR_ISR
]
=
addr
>>
32
;
}
cpu_loop_exit_restore
(
cs
,
retaddr
);
}
static
void
hppa_cpu_realizefn
(
DeviceState
*
dev
,
Error
**
errp
)
{
CPUState
*
cs
=
CPU
(
dev
);
...
...
@@ -139,7 +156,7 @@ static void hppa_cpu_class_init(ObjectClass *oc, void *data)
#else
cc
->
get_phys_page_debug
=
hppa_cpu_get_phys_page_debug
;
#endif
cc
->
do_unaligned_access
=
hppa_cpu_do_unaligned_access
;
cc
->
disas_set_info
=
hppa_cpu_disas_set_info
;
cc
->
tcg_initialize
=
hppa_translate_init
;
...
...
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