[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 2/2] mac_newworld: always enable disable_direct_re
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 2/2] mac_newworld: always enable disable_direct_reg3_writes for ADB machines |
Date: |
Fri, 22 Jun 2018 20:25:50 +1000 |
User-agent: |
Mutt/1.10.0 (2018-05-17) |
On Fri, Jun 22, 2018 at 09:00:09AM +0100, Mark Cave-Ayland wrote:
> Commit 84051eb400 "adb: add property to disable direct reg 3 writes" added a
> workaround for MacOS 9 incorrectly setting the mouse address during boot of
> PMU machines.
>
> Further testing has shown that since fb6649f172 "adb: fix read reg 3 byte
> ordering" this can still sometimes happen with the CUDA mac99 machine,
> so let's enable this workaround for all New World machines using ADB for now.
>
> Signed-off-by: Mark Cave-Ayland <address@hidden>
Applied to ppc-for-3.0, thanks.
> ---
> hw/ppc/mac_newworld.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c
> index ff715ffffd..2b13fcdde5 100644
> --- a/hw/ppc/mac_newworld.c
> +++ b/hw/ppc/mac_newworld.c
> @@ -407,11 +407,11 @@ static void ppc_core99_init(MachineState *machine)
>
> adb_bus = qdev_get_child_bus(dev, "adb.0");
> dev = qdev_create(adb_bus, TYPE_ADB_KEYBOARD);
> - qdev_prop_set_bit(dev, "disable-direct-reg3-writes", has_pmu);
> + qdev_prop_set_bit(dev, "disable-direct-reg3-writes", true);
> qdev_init_nofail(dev);
>
> dev = qdev_create(adb_bus, TYPE_ADB_MOUSE);
> - qdev_prop_set_bit(dev, "disable-direct-reg3-writes", has_pmu);
> + qdev_prop_set_bit(dev, "disable-direct-reg3-writes", true);
> qdev_init_nofail(dev);
> }
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature