I think David has an idea about how to fix this properly.

Cc: David Gibson <da...@gibson.dropbear.id.au>
---
 hw/spapr_vty.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/spapr_vty.c b/hw/spapr_vty.c
index 2849961..29cb006 100644
--- a/hw/spapr_vty.c
+++ b/hw/spapr_vty.c
@@ -154,6 +154,7 @@ static VIOsPAPRDevice *vty_lookup(sPAPREnvironment *spapr, 
target_ulong reg)
     VIOsPAPRDevice *sdev;
 
     sdev = spapr_vio_find_by_reg(spapr->vio_bus, reg);
+#if 0
     if (!sdev && reg == 0) {
         DeviceState *qdev;
 
@@ -168,6 +169,7 @@ static VIOsPAPRDevice *vty_lookup(sPAPREnvironment *spapr, 
target_ulong reg)
             }
         }
     }
+#endif
 
     return sdev;
 }
-- 
1.7.4.1


Reply via email to