Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
linux
Commits
d0adf747
Commit
d0adf747
authored
Sep 18, 2012
by
Marc Zyngier
Committed by
Christoffer Dall
Mar 06, 2013
Browse files
ARM: KVM: abstract HSR_SRT_{MASK,SHIFT} away
Signed-off-by:
Marc Zyngier
<
marc.zyngier@arm.com
>
parent
7c511b88
Changes
2
Hide whitespace changes
Inline
Side-by-side
arch/arm/include/asm/kvm_emulate.h
View file @
d0adf747
...
...
@@ -105,4 +105,9 @@ static inline bool kvm_vcpu_dabt_issext(struct kvm_vcpu *vcpu)
return
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_SSE
;
}
static
inline
int
kvm_vcpu_dabt_get_rd
(
struct
kvm_vcpu
*
vcpu
)
{
return
(
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_SRT_MASK
)
>>
HSR_SRT_SHIFT
;
}
#endif
/* __ARM_KVM_EMULATE_H__ */
arch/arm/kvm/mmio.c
View file @
d0adf747
...
...
@@ -94,7 +94,7 @@ static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
is_write
=
kvm_vcpu_dabt_iswrite
(
vcpu
);
sign_extend
=
kvm_vcpu_dabt_issext
(
vcpu
);
rt
=
(
kvm_vcpu_get_
hs
r
(
vcpu
)
&
HSR_SRT_MASK
)
>>
HSR_SRT_SHIFT
;
rt
=
kvm_vcpu_
dabt_
get_r
d
(
vcpu
);
if
(
kvm_vcpu_reg_is_pc
(
vcpu
,
rt
))
{
/* IO memory trying to read/write pc */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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