-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 197772 b: refs/heads/master c: c7f38f4 h: refs/heads/master v: v3
- Loading branch information
Alexander Graf
authored and
Avi Kivity
committed
May 17, 2010
1 parent
798976f
commit 1183cde
Showing
11 changed files
with
291 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 66bb170655799a0149df0844fb8232f27e54323c | ||
refs/heads/master: c7f38f46f2a98d232147e47284cb4e7363296a3e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License, version 2, as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright SUSE Linux Products GmbH 2010 | ||
* | ||
* Authors: Alexander Graf <agraf@suse.de> | ||
*/ | ||
|
||
#ifndef __ASM_KVM_BOOKE_H__ | ||
#define __ASM_KVM_BOOKE_H__ | ||
|
||
#include <linux/types.h> | ||
#include <linux/kvm_host.h> | ||
|
||
static inline void kvmppc_set_gpr(struct kvm_vcpu *vcpu, int num, ulong val) | ||
{ | ||
vcpu->arch.gpr[num] = val; | ||
} | ||
|
||
static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) | ||
{ | ||
return vcpu->arch.gpr[num]; | ||
} | ||
|
||
static inline void kvmppc_set_cr(struct kvm_vcpu *vcpu, u32 val) | ||
{ | ||
vcpu->arch.cr = val; | ||
} | ||
|
||
static inline u32 kvmppc_get_cr(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.cr; | ||
} | ||
|
||
static inline void kvmppc_set_xer(struct kvm_vcpu *vcpu, u32 val) | ||
{ | ||
vcpu->arch.xer = val; | ||
} | ||
|
||
static inline u32 kvmppc_get_xer(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.xer; | ||
} | ||
|
||
static inline u32 kvmppc_get_last_inst(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.last_inst; | ||
} | ||
|
||
static inline void kvmppc_set_ctr(struct kvm_vcpu *vcpu, ulong val) | ||
{ | ||
vcpu->arch.ctr = val; | ||
} | ||
|
||
static inline ulong kvmppc_get_ctr(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.ctr; | ||
} | ||
|
||
static inline void kvmppc_set_lr(struct kvm_vcpu *vcpu, ulong val) | ||
{ | ||
vcpu->arch.lr = val; | ||
} | ||
|
||
static inline ulong kvmppc_get_lr(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.lr; | ||
} | ||
|
||
static inline void kvmppc_set_pc(struct kvm_vcpu *vcpu, ulong val) | ||
{ | ||
vcpu->arch.pc = val; | ||
} | ||
|
||
static inline ulong kvmppc_get_pc(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.pc; | ||
} | ||
|
||
static inline ulong kvmppc_get_fault_dar(struct kvm_vcpu *vcpu) | ||
{ | ||
return vcpu->arch.fault_dear; | ||
} | ||
|
||
#endif /* __ASM_KVM_BOOKE_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.