Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215846
b: refs/heads/master
c: ebc6587
h: refs/heads/master
v: v3
  • Loading branch information
Hollis Blanchard authored and Avi Kivity committed Oct 24, 2010
1 parent a73094d commit 69a4861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 0b3bafc8e5867039e265869749abbb7ea6dd2c8b
refs/heads/master: ebc65874e9e8f3b8bbbc69aa49acd7489cd41c52
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kvm/44x.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int kvmppc_core_check_processor_compat(void)
{
int r;

if (strcmp(cur_cpu_spec->platform, "ppc440") == 0)
if (strncmp(cur_cpu_spec->platform, "ppc440", 6) == 0)
r = 0;
else
r = -ENOTSUPP;
Expand Down Expand Up @@ -72,6 +72,7 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu)
/* Since the guest can directly access the timebase, it must know the
* real timebase frequency. Accordingly, it must see the state of
* CCR1[TCS]. */
/* XXX CCR1 doesn't exist on all 440 SoCs. */
vcpu->arch.ccr1 = mfspr(SPRN_CCR1);

for (i = 0; i < ARRAY_SIZE(vcpu_44x->shadow_refs); i++)
Expand Down

0 comments on commit 69a4861

Please sign in to comment.