]> Git Repo - qemu.git/commit
PPC: fix sregs usage on booke
authorAlexander Graf <[email protected]>
Wed, 25 May 2011 13:04:42 +0000 (15:04 +0200)
committerAlexander Graf <[email protected]>
Fri, 3 Jun 2011 10:42:19 +0000 (12:42 +0200)
commitfafc0b6afed9d913ddbcd2da87e5d39da9bf04c5
tree8c9f56c48c9661589e549d458177db655959fccc
parent1ff7854e8899266085aea923b032274d15d7fe58
PPC: fix sregs usage on booke

When compiling qemu with kvm support on BookE PPC machines, I get
the following error:

  cc1: warnings being treated as errors
  /tmp/qemu/target-ppc/kvm.c: In function 'kvm_arch_get_registers':
  /tmp/qemu/target-ppc/kvm.c:188: error: unused variable 'sregs'

This is due to overly ambitious #ifdef'ery introduced in 90dc88.
Fix it by keeping code that doesn't depend on new headers alive
for the compiler, but never executed due to failing capability
checks.

CC: Scott Wood <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
target-ppc/kvm.c
This page took 0.023635 seconds and 4 git commands to generate.