Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376601
b: refs/heads/master
c: bf32ebf
h: refs/heads/master
i:
  376599: 2979c52
v: v3
  • Loading branch information
David Daney authored and Gleb Natapov committed Jun 3, 2013
1 parent 9058968 commit 9d7813d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 688cded320a4760de679160b42f9a81face02674
refs/heads/master: bf32ebf66d74e8a196256d7ac2a4f3c6938c614a
3 changes: 2 additions & 1 deletion trunk/arch/mips/include/uapi/asm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
* extended to 64-bits.
*/
struct kvm_regs {
__u64 gprs[32];
/* out (KVM_GET_REGS) / in (KVM_SET_REGS) */
__u64 gpr[32];
__u64 hi;
__u64 lo;
__u64 pc;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/kvm/kvm_mips.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)
int i;

for (i = 0; i < 32; i++)
vcpu->arch.gprs[i] = regs->gprs[i];
vcpu->arch.gprs[i] = regs->gpr[i];

vcpu->arch.hi = regs->hi;
vcpu->arch.lo = regs->lo;
Expand All @@ -692,7 +692,7 @@ int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs)
int i;

for (i = 0; i < 32; i++)
regs->gprs[i] = vcpu->arch.gprs[i];
regs->gpr[i] = vcpu->arch.gprs[i];

regs->hi = vcpu->arch.hi;
regs->lo = vcpu->arch.lo;
Expand Down

0 comments on commit 9d7813d

Please sign in to comment.